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