Unify store-closed messaging when the market is closed or has no quote.
Treat missing quotes as closed across home and products, show only the admin closed_message as hint, and block trading with consistent notices. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -346,7 +346,7 @@ import {
|
||||
serviceFeePercentage,
|
||||
type TradeInputLock,
|
||||
} from '@/utils/serviceFee'
|
||||
import { isStoreClosed, getStoreClosedMessage } from '@/utils/storeHours'
|
||||
import { isStoreClosed, resolveStoreClosedNotice } from '@/utils/storeHours'
|
||||
import { resetTransactionsPageData } from '@/views/base/transactions/composables/useTransactionsPageData'
|
||||
import { formatCashWalletBalanceText, getWeightUnit } from '@/utils/productDealMethod'
|
||||
import { formatProductWalletBalanceText, getCashWalletBalance, getProductInventoryQuantity } from '@/utils/productAssets'
|
||||
@@ -776,7 +776,7 @@ async function initPrice() {
|
||||
|
||||
function okConfirm() {
|
||||
if (isStoreClosed()) {
|
||||
message.warning(getStoreClosedMessage())
|
||||
message.warning(resolveStoreClosedNotice(userStore.getValueByKey('closed_message')))
|
||||
return
|
||||
}
|
||||
if (cashValidationMessage.value) {
|
||||
@@ -791,7 +791,7 @@ async function ok() {
|
||||
return
|
||||
}
|
||||
if (isStoreClosed()) {
|
||||
message.warning(getStoreClosedMessage())
|
||||
message.warning(resolveStoreClosedNotice(userStore.getValueByKey('closed_message')))
|
||||
return
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user