feat: align fee summary, special pricing and support chat with modular
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-2
@@ -3,7 +3,7 @@ import { useWebSocket } from '@vueuse/core'
|
||||
import { useUserStore } from '@/store/userStore'
|
||||
import { useSettingsStore } from '@/store/settingsStore'
|
||||
import { startChat } from '@/api/chat'
|
||||
import { createUuid } from '@/utils/index'
|
||||
import { createUuid, getToken } from '@/utils/index'
|
||||
|
||||
/** true/1/yes/activate */
|
||||
export function isSettingFlagOn(value: unknown): boolean {
|
||||
@@ -11,8 +11,9 @@ export function isSettingFlagOn(value: unknown): boolean {
|
||||
return v === 'true' || v === '1' || v === 'yes' || v === 'activate'
|
||||
}
|
||||
|
||||
/** نمایش چت برای کاربر نهایی: سوییچ دیپلوی + سوییچ مشتری */
|
||||
/** نمایش چت برای کاربر نهایی: لاگین + سوییچ دیپلوی + سوییچ مشتری */
|
||||
export function isUserSupportChatEnabled(): boolean {
|
||||
if (!getToken()) return false
|
||||
const settings = useSettingsStore()
|
||||
return (
|
||||
isSettingFlagOn(settings.getSettingByKey('show_to_users_chat')) &&
|
||||
|
||||
Reference in New Issue
Block a user