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:
2026-07-11 12:42:56 +02:00
co-authored by Cursor
parent 1000df5931
commit 0109f3a744
12 changed files with 99 additions and 82 deletions
+3 -3
View File
@@ -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 {