Align mobile products storeClosed condition with desktop
This commit is contained in:
@@ -244,7 +244,7 @@ export function hasLivePriceQuote(): boolean {
|
|||||||
export function isStoreClosed(): boolean {
|
export function isStoreClosed(): boolean {
|
||||||
void productTradingHoursVersion.value
|
void productTradingHoursVersion.value
|
||||||
|
|
||||||
if (lastPrice.value?.closed === true) {
|
if (lastPrice.value?.closed === true || lastPrice.value?.status === 'closed') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ import img from '@/assets/img/user_ly1.svg'
|
|||||||
import MobilePageHeader from '@/layouts/components/MobilePageHeader.vue'
|
import MobilePageHeader from '@/layouts/components/MobilePageHeader.vue'
|
||||||
import ProductItem from '@/views/base/products/components/ProductItem.vue'
|
import ProductItem from '@/views/base/products/components/ProductItem.vue'
|
||||||
import { useProductsPageContext } from '../composables/useProductsPage'
|
import { useProductsPageContext } from '../composables/useProductsPage'
|
||||||
import { isStoreClosed, STORE_CLOSED_TITLE } from '@/utils/storeHours'
|
import { isStoreClosed, shouldBlockStoreTrading, STORE_CLOSED_TITLE } from '@/utils/storeHours'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -74,7 +74,7 @@ const {
|
|||||||
storeClosedMessage,
|
storeClosedMessage,
|
||||||
} = useProductsPageContext()
|
} = useProductsPageContext()
|
||||||
|
|
||||||
const storeClosed = computed(() => isStoreClosed())
|
const storeClosed = computed(() => isStoreClosed() || shouldBlockStoreTrading())
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user