Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #178 from subspace/disable-reset-button-for-produc…
Browse files Browse the repository at this point in the history
…tion

disabled reset button on prod
  • Loading branch information
ozgunozerk committed Apr 25, 2022
2 parents ac733a6 + ae33758 commit d7bb8da
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/mainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ q-menu(auto-close)
.col
p.text-grey(v-if="!launchOnStart") {{ lang.autoStart }}
p.text-black(v-else) {{ lang.autoStart }}
q-item(@click="reset()" clickable)
q-item(@click="reset()" clickable v-if="devMode")
.row.items-center
.col-auto.q-mr-md
q-icon(color="red" name="refresh")
Expand All @@ -34,13 +34,19 @@ export default defineComponent({
lang,
launchOnStart: false,
autoLauncher: global.autoLauncher,
disableAutoLaunch: false
disableAutoLaunch: false,
devMode: false
}
},
mounted() {
this.checkDev()
this.initMenu()
},
methods: {
checkDev() {
if (util.CONTEXT_MENU != "OFF")
this.devMode = true
},
async toggleClicked() {
if (this.disableAutoLaunch) {
Notify.create({
Expand Down

0 comments on commit d7bb8da

Please sign in to comment.