File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import FeeCalculator from "./custom/FeeCalculator.vue"
1818
1919/** Services */
2020import amp from " @/services/amp"
21- import { isMac , isPrefersDarkScheme } from " @/services/utils/general"
21+ import { isMac , isPrefersDarkScheme , getNetworkName } from " @/services/utils/general"
2222import { capitilize } from " @/services/utils/strings"
2323
2424/** API */
@@ -808,13 +808,24 @@ const rawOtherActions = [
808808 subtitle: " Command" ,
809809 runText: " Toggle" ,
810810 callback : () => {
811- showPromoBackground .value = ! showPromoBackground .value
811+ if (getNetworkName () !== " Mammoth" ) {
812+ notificationsStore .create ({
813+ notification: {
814+ type: " info" ,
815+ icon: " info" ,
816+ title: ` Available for the mammoth network only` ,
817+ autoDestroy: true ,
818+ },
819+ })
820+ return
821+ }
812822
823+ showPromoBackground .value = ! showPromoBackground .value
813824 notificationsStore .create ({
814825 notification: {
815826 type: " info" ,
816827 icon: " info" ,
817- title: ` Promo background ${ appStore . showPromoBackground ? " enabled" : " disabled" } ` ,
828+ title: ` Promo background ${ showPromoBackground . value ? " enabled" : " disabled" } ` ,
818829 autoDestroy: true ,
819830 },
820831 })
You can’t perform that action at this time.
0 commit comments