feat(app): add maintenance mode

This commit is contained in:
Nikita Kiselev
2025-08-03 10:00:54 +03:00
parent 86d0fa9594
commit 2752ec3dd1
6 changed files with 38 additions and 63 deletions

View File

@@ -3,6 +3,7 @@ import {fetchSettings} from "@/utils/ftch.js";
export const useSettingsStore = defineStore('settings', {
state: () => ({
app_enabled: true,
app_name: 'OpenCart Telegram магазин',
app_icon: '',
app_icon192: '',
@@ -32,6 +33,7 @@ export const useSettingsStore = defineStore('settings', {
this.theme.light = settings.theme_light;
this.theme.dark = settings.theme_dark;
this.ya_metrika_enabled = settings.ya_metrika_enabled;
this.app_enabled = settings.app_enabled;
}
}
});