perf: add reset settings button #326

This commit is contained in:
WDaan 2022-12-30 12:31:40 +01:00
parent e242bad1af
commit 0ada50ba4a
2 changed files with 9 additions and 1 deletions

View file

@ -207,6 +207,9 @@
</v-col> </v-col>
</v-row> </v-row>
</v-list-item> </v-list-item>
<v-list-item class="justify-center pb-2">
<v-btn @click="resetSettings"> {{ $t('modals.settings.pageVueTorrent.pageGeneral.resetSettings') }} </v-btn>
</v-list-item>
</v-card> </v-card>
</template> </template>
@ -238,6 +241,10 @@ export default {
methods: { methods: {
async fetchQbitVersion() { async fetchQbitVersion() {
this.Qbitversion = await Qbit.getAppVersion() this.Qbitversion = await Qbit.getAppVersion()
},
resetSettings() {
window.localStorage.clear()
location.reload()
} }
} }
} }

View file

@ -167,7 +167,8 @@ const locale = {
dateFormat: 'Date Format', dateFormat: 'Date Format',
openSideBarOnStart: 'Open Side Bar on launch', openSideBarOnStart: 'Open Side Bar on launch',
currentVersion: 'Current Version:', currentVersion: 'Current Version:',
qbittorrentVersion: 'QBittorrent Version:' qbittorrentVersion: 'QBittorrent Version:',
resetSettings: 'Reset Settings'
}, },
pageDashboard: { pageDashboard: {
busyTorrentTip: 'Properties to display for busy torrents', busyTorrentTip: 'Properties to display for busy torrents',