client/webserver/site/src/js/order.js
/* showCancel shows a form to confirm submission of a cancel order. */
showCancel shows a form to confirm submission of a cancel order.
showCancel shows a form to confirm submission of a cancel order .
showCancel () {
    const order = this.order
    const page = this.page
    const remaining = order.qty - order.filled
    page.cancelRemain.textContent = Doc.formatCoinValue(remaining / 1e8)
    const symbol = Order.isMarketBuy(order) ? this.market.quote.symbol : this.market.base.symbol
    page.cancelUnit.textContent = symbol.toUpperCase()
    this.showForm(page.cancelForm)
  }
showCancel ( ) { const order = this . order const page = this . page const remaining = order . qty - order . filled page . cancelRemain . textContent = Doc . formatCoinValue ( remaining / 1e8 ) const symbol = Order . isMarketBuy ( order ) ? this . market . quote . symbol : this . market . base . symbol page . cancelUnit . textContent = symbol . toUpperCase ( ) this . showForm ( page . cancelForm ) }
showCancel shows a form to confirm submission of a cancel order.
showCancel shows a form to confirm submission of a cancel order .