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-row>
</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>
</template>
@ -238,6 +241,10 @@ export default {
methods: {
async fetchQbitVersion() {
this.Qbitversion = await Qbit.getAppVersion()
},
resetSettings() {
window.localStorage.clear()
location.reload()
}
}
}

View file

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