client/webserver/site/src/js/orderutil.js
/* statusString converts the order status to a string */
statusString converts the order status to a string
statusString converts the order status to a string
function statusString (order) {
  const isLive = hasLiveMatches(order)
  switch (order.status) {
    case StatusUnknown: return 'unknown'
    case StatusEpoch: return 'epoch'
    case StatusBooked: return order.cancelling ? 'cancelling' : 'booked'
    case StatusExecuted: return isLive ? 'settling' : 'executed'
    case StatusCanceled: return isLive ? 'canceled/settling' : 'canceled'
    case StatusRevoked: return isLive ? 'revoked/settling' : 'revoked'
  }
}
function statusString ( order ) { const isLive = hasLiveMatches ( order ) switch ( order . status ) { case StatusUnknown : return 'unknown' case StatusEpoch : return 'epoch' case StatusBooked : return order . cancelling ? 'cancelling' : 'booked' case StatusExecuted : return isLive ? 'settling' : 'executed' case StatusCanceled : return isLive ? 'canceled/settling' : 'canceled' case StatusRevoked : return isLive ? 'revoked/settling' : 'revoked' } }
statusString converts the order status to a string
statusString converts the order status to a string