mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
hideupdate button for version 4.0.0
This commit is contained in:
@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user