0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00

feat: Change how developer mode is accessed

This commit is contained in:
Kenny 2022-05-06 11:42:03 -04:00
parent fae8bddd51
commit 0b96f9f167
2 changed files with 18 additions and 3 deletions

View file

@ -8,7 +8,14 @@
</v-list-item>
<!-- Dev Mode Open -->
<v-btn text class="entry" @click="dev()" />
<v-btn text class="entry" @click="dev()" v-if="!devmode" />
<v-btn text class="entry text-left text-capitalize" style="margin: 0 0.75em 0 0.75em;" to="/mods/developer" v-if="devmode">
<v-icon size="30px" class="icon" >mdi-database-edit</v-icon>
{{ devmodebuttonname }}
</v-btn>
<!-- End Dev Mode -->
</div>
</template>
@ -31,6 +38,9 @@
data() {
return {
devClicks: 0,
devmode: false,
devmodebuttonname: "Developer Mode",
settingsItems: [{
name: "General",
@ -95,13 +105,17 @@
this.settingsItems[6].name = this.$lang('settings').updates;
this.settingsItems[7].name = this.$lang('settings').logs;
this.settingsItems[8].name = this.$lang('settings').about;
this.devmodebuttonname = this.$lang('settings').devmode;
this.devmode = localStorage.getItem('devmode');
},
methods: {
dev() {
this.devClicks++;
if (this.devClicks >= 6) {
this.$router.push("/mods/developer");
localStorage.setItem('devmode', 'true');
this.devmode = true;
}
},
},

View file

@ -21,7 +21,8 @@ module.exports = {
plugins: "Plugins",
updates: "Updates",
logs: "Logs",
about: "About"
about: "About",
devmode: "Registry Editor"
},
mods: {