mirror of
https://github.com/frappe/books.git
synced 2025-01-09 17:53:56 +00:00
fix(ui): unhide dev mode in prod 🤦
This commit is contained in:
parent
2310b6acec
commit
a3a6c5bad9
@ -145,8 +145,9 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<p
|
<p
|
||||||
v-if="!fyo.store.isDevelopment"
|
v-if="showDevMode"
|
||||||
class="text-xs text-gray-500 select-none"
|
class="text-xs text-gray-500 select-none cursor-pointer"
|
||||||
|
@click="showDevMode = false"
|
||||||
>
|
>
|
||||||
dev mode
|
dev mode
|
||||||
</p>
|
</p>
|
||||||
@ -206,11 +207,13 @@ export default defineComponent({
|
|||||||
groups: [],
|
groups: [],
|
||||||
viewShortcuts: false,
|
viewShortcuts: false,
|
||||||
activeGroup: null,
|
activeGroup: null,
|
||||||
|
showDevMode: false,
|
||||||
} as {
|
} as {
|
||||||
companyName: string;
|
companyName: string;
|
||||||
groups: SidebarConfig;
|
groups: SidebarConfig;
|
||||||
viewShortcuts: boolean;
|
viewShortcuts: boolean;
|
||||||
activeGroup: null | SidebarRoot;
|
activeGroup: null | SidebarRoot;
|
||||||
|
showDevMode: boolean;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -239,6 +242,8 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.shortcuts?.set(COMPONENT_NAME, ['F1'], () => this.openDocumentation());
|
this.shortcuts?.set(COMPONENT_NAME, ['F1'], () => this.openDocumentation());
|
||||||
|
|
||||||
|
this.showDevMode = this.fyo.store.isDevelopment;
|
||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
this.shortcuts?.delete(COMPONENT_NAME);
|
this.shortcuts?.delete(COMPONENT_NAME);
|
||||||
|
Loading…
Reference in New Issue
Block a user