mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 18:36:14 +03:00
perf: add reset settings button #326
This commit is contained in:
parent
e242bad1af
commit
0ada50ba4a
2 changed files with 9 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue