feat: sidebar on launch option #182

This commit is contained in:
WDaan 2022-11-16 14:12:36 +01:00
parent e08a4456ee
commit fca51c536f
4 changed files with 16 additions and 0 deletions

View file

@ -72,6 +72,7 @@ export default {
},
created() {
this.$vuetify.theme.dark = this.getTheme()
this.drawer = this.webuiSettings.openSideBarOnStart && this.$vuetify.breakpoint.mdAndUp
}
}
</script>

View file

@ -101,6 +101,19 @@
</v-col>
</v-row>
</v-list-item>
<v-list-item>
<v-row dense>
<v-col>
<v-switch
v-model="webuiSettings.openSideBarOnStart"
class="v-input--reverse pa-0 ma-0"
hide-details
inset
:label="$t('modals.settings.pageVueTorrent.pageGeneral.openSideBarOnStart')"
/>
</v-col>
</v-row>
</v-list-item>
<v-list-item>
<v-row dense>
<v-col cols="8" sm="8" md="10">

View file

@ -146,6 +146,7 @@ const locale = {
paginationSize: 'Pagination size:',
vueTorrentTitle: 'VueTorrent title:',
dateFormat: 'Date Format',
openSideBarOnStart: 'Open Side Bar on launch',
currentVersion: 'Current Version:',
qbittorrentVersion: 'QBittorrent Version:'
},

View file

@ -69,6 +69,7 @@ export default new Vuex.Store({
topPagination: false,
paginationSize: 15,
dateFormat: 'DD/MM/YYYY, HH:mm:ss',
openSideBarOnStart: true,
busyTorrentProperties: [
{ name: 'Size', active: true },
{ name: 'Progress', active: true },