1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-05-04 06:14:57 +03:00

swich to old ui button

This commit is contained in:
Daan Wijns 2020-05-26 21:32:33 +02:00
parent 25d06285a8
commit 0843d88c8c
13 changed files with 1942 additions and 3 deletions
src/components/Modals

View file

@ -69,7 +69,6 @@
<v-form>
<v-card-actions class="justify-center">
<v-btn
:loading="loading"
text
@click="submit"
:disabled="!valid"

View file

@ -0,0 +1,40 @@
<template>
<v-dialog max-width="500px" v-model="dialog">
<v-card>
<v-container
style="min-height: 300px;"
:class="`pa-0 project done`"
>
<v-card-title class="justify-center">
<h2>Settings</h2>
</v-card-title>
<v-form>
<v-card-actions class="justify-center">
<v-btn
text
@click="switchOldUI"
class="blue_accent white--text mx-0 mt-3"
>switch to old ui</v-btn
>
</v-card-actions>
</v-form>
</v-container>
</v-card>
</v-dialog>
</template>
<script>
import Modal from '@/mixins/Modal'
import qbit from '@/services/qbit'
export default {
name: 'SettingsModal',
mixins: [Modal],
methods: {
async switchOldUI() {
await qbit.switchToOldUi()
window.location.reload(true)
}
}
}
</script>