diff --git a/components/cmd/CommandMenu.vue b/components/cmd/CommandMenu.vue index ae8f4211..735bd8cf 100644 --- a/components/cmd/CommandMenu.vue +++ b/components/cmd/CommandMenu.vue @@ -39,6 +39,7 @@ const notificationsStore = useNotificationsStore() const appConfig = useAppConfig() const theme = useCookie("theme", { default: () => "dark" }) +const showPromoBackground = useCookie("showPromoBackground", { default: () => true }) const route = useRoute() const router = useRouter() @@ -766,23 +767,6 @@ const rawDeveloperActions = [ }) }, }, - { - type: "callback", - icon: "settings", - title: "Toggle Search Scoring", - subtitle: "Command", - runText: "Reset", - callback: () => { - notificationsStore.create({ - notification: { - type: "info", - icon: "info", - title: `Search scoring is not available`, - autoDestroy: true, - }, - }) - }, - }, { type: "callback", icon: "stars", @@ -817,6 +801,25 @@ const developerGroup = computed(() => { }) const rawOtherActions = [ + { + type: "callback", + icon: "settings", + title: "Toggle Promo Background", + subtitle: "Command", + runText: "Toggle", + callback: () => { + showPromoBackground.value = !showPromoBackground.value + + notificationsStore.create({ + notification: { + type: "info", + icon: "info", + title: `Promo background ${appStore.showPromoBackground ? "enabled" : "disabled"}`, + autoDestroy: true, + }, + }) + }, + }, { type: "callback", icon: "terminal", diff --git a/layouts/default.vue b/layouts/default.vue index 44a9914e..bdb13490 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,12 +4,14 @@ import AdvBanner from "@/components/shared/AdvBanner.vue" /** Services */ import { getNetworkName } from "@/services/utils/general" + +const showPromoBackground = useCookie("showPromoBackground", { default: () => true })