hideupdate button for version 4.0.0

This commit is contained in:
raishvaria
2020-12-01 11:02:32 +05:30
parent 88bcb1c2b4
commit a7d61b802d

View File

@ -60,6 +60,7 @@
icon="rocket" icon="rocket"
color="theme" color="theme"
class="mt-5" class="mt-5"
v-if="hasUiUpdate"
@click="onUpdateApp" @click="onUpdateApp"
> >
{{ $t('settings.update_app.update') }} {{ $t('settings.update_app.update') }}
@ -163,6 +164,9 @@ export default {
}) })
} }
}, },
hasUiUpdate() {
return this.updateData.version != '4.0.0'
}
}, },
created() { created() {
window.addEventListener('beforeunload', (event) => { window.addEventListener('beforeunload', (event) => {