diff --git a/resources/assets/js/views/settings/UpdateApp.vue b/resources/assets/js/views/settings/UpdateApp.vue index 787d066d..8b9db1ea 100644 --- a/resources/assets/js/views/settings/UpdateApp.vue +++ b/resources/assets/js/views/settings/UpdateApp.vue @@ -13,7 +13,7 @@ {{ $t('settings.update_app.check_update') }}
-
+

{{ $t('settings.update_app.avail_update') }}


@@ -24,13 +24,13 @@ {{ $t('settings.update_app.update') }}
- +
@@ -42,6 +42,7 @@ export default { return { isShowProgressBar: false, isUpdateAvail: false, + isUpdating: false, progress: 10, interval: null, description: '', @@ -60,11 +61,14 @@ export default { }, methods: { async onUpdateApp () { + this.isUpdating = true const data = this.updateData let response = await axios.post('/api/update', data) console.log(response.data) + this.isUpdating = false }, async checkUpdate () { + this.isUpdateAvail = true let response = await axios.get('/api/check/update') console.log(response.data) if (response.data) { diff --git a/resources/assets/sass/pages/settings.scss b/resources/assets/sass/pages/settings.scss index 3e451271..c9b682eb 100644 --- a/resources/assets/sass/pages/settings.scss +++ b/resources/assets/sass/pages/settings.scss @@ -153,6 +153,7 @@ .version { background: #EAF1FB; + color: #A5ACC1; border: 1px solid #EAF1FB; box-sizing: border-box; border-radius: 5px;