This commit is contained in:
2026-06-14 22:00:59 +03:30
parent dad6b0b82c
commit aec64397aa
6 changed files with 91 additions and 21 deletions
+7 -4
View File
@@ -38,7 +38,7 @@
<AssetsSection v-else @openGoldModal="openGoldModal" @openRialModal="openRialModal"/>
<!-- پیام بسته بودن بازار -->
<MarketClosedMessage v-if="showClosedMessage" :message="closedMessage"/>
<MarketClosedMessage v-if="showClosedMessage" :message="marketClosedText"/>
<!-- قیمت فعلی -->
<CurrentPrice/>
@@ -89,6 +89,7 @@ import {useConfigStore} from '@/store/configStore'
import {useFundUserStore} from '@/store/fundStore'
import {usePriceWithoutType} from '../../../utils/usePrice'
import {getLastPrices, lastPrice, price, startLastPricePolling, stopLastPricePolling} from '@/utils/price'
import { getStoreClosedMessage, isStoreClosed } from '@/utils/storeHours'
import {getConstByKey} from '@/api/const'
import {message, Modal} from 'ant-design-vue'
@@ -126,9 +127,11 @@ const { assetsSummary, loadWalletAssets } = useWalletAssets()
// Config
const isGaroosi = computed(() => configStore.config.name === 'garoosi')
const closedMessage = computed(() => userStore.getValueByKey('closed_message'))
const showClosedMessage = computed(() =>
closedMessage.value &&
lastPrice?.value?.price_last === 0)
const marketClosedText = computed(() => {
if (!isStoreClosed()) return ''
return closedMessage.value || getStoreClosedMessage()
})
const showClosedMessage = computed(() => !!marketClosedText.value)
// State