Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions components/cmd/CommandMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import FeeCalculator from "./custom/FeeCalculator.vue"

/** Services */
import amp from "@/services/amp"
import { isMac, isPrefersDarkScheme } from "@/services/utils/general"
import { isMac, isPrefersDarkScheme, getNetworkName } from "@/services/utils/general"
import { capitilize } from "@/services/utils/strings"

/** API */
Expand Down Expand Up @@ -808,13 +808,24 @@ const rawOtherActions = [
subtitle: "Command",
runText: "Toggle",
callback: () => {
showPromoBackground.value = !showPromoBackground.value
if (getNetworkName() !== "Mammoth") {
notificationsStore.create({
notification: {
type: "info",
icon: "info",
title: `Available for the mammoth network only`,
autoDestroy: true,
},
})
return
}

showPromoBackground.value = !showPromoBackground.value
notificationsStore.create({
notification: {
type: "info",
icon: "info",
title: `Promo background ${appStore.showPromoBackground ? "enabled" : "disabled"}`,
title: `Promo background ${showPromoBackground.value ? "enabled" : "disabled"}`,
autoDestroy: true,
},
})
Expand Down