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

Show app version in settings

This commit is contained in:
Daan 2020-09-12 19:51:17 +02:00
parent 0a96b22ac0
commit 161841b929
8 changed files with 33 additions and 5 deletions
src/components/Modals/SettingsModal/Tabs

View file

@ -122,7 +122,7 @@
<v-col cols="10">
<v-checkbox
dense
:label="`When seeding time reaches`"
label="When seeding time reache`"
v-model="settings.max_seeding_time_enabled"
/>
</v-col>

View file

@ -17,6 +17,14 @@
>
<template #label> Show Free Space </template>
</v-switch>
<v-row dense>
<v-col cols="10" sm="10" md="11">
<p class="subtitle-1">Current Version:</p>
</v-col>
<v-col cols="2" sm="2" md="1">
<p class="mb-2">{{ version }}</p>
</v-col>
</v-row>
</v-container>
</v-form>
</div>
@ -26,11 +34,12 @@
</template>
<script>
import { mapState } from 'vuex'
import { mapState, mapGetters } from 'vuex'
export default {
name: 'VueTorrent',
computed: {
...mapState(['webuiSettings']),
...mapGetters(['getAppVersion']),
freeSpace: {
get() {
return this.webuiSettings.showFreeSpace
@ -38,6 +47,9 @@ export default {
set(val) {
this.webuiSettings.showFreeSpace = val
}
},
version() {
return this.getAppVersion()
}
}
}