diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-02-17 09:34:01 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-02-18 08:53:57 +0100 |
commit | 6ce469132c80a5a5cc45b1e7e215f43b538afd93 (patch) | |
tree | dbb295d5d2fe16e4c71a930c979f3897a4fd5c45 /apps/updatenotification/src | |
parent | d4b99c81f32453f57cb2c132fa46c6b5219b9e99 (diff) | |
download | nextcloud-server-6ce469132c80a5a5cc45b1e7e215f43b538afd93.tar.gz nextcloud-server-6ce469132c80a5a5cc45b1e7e215f43b538afd93.zip |
Hide updater button when web updater is disabled
Whenever the web updater is disabled, the updater button and its
matching token requesting endpoints are disabled.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/updatenotification/src')
-rw-r--r-- | apps/updatenotification/src/components/UpdateNotification.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue index 9d18fab2a11..9f182a3743d 100644 --- a/apps/updatenotification/src/components/UpdateNotification.vue +++ b/apps/updatenotification/src/components/UpdateNotification.vue @@ -42,7 +42,7 @@ </template> <div> - <a v-if="updaterEnabled" + <a v-if="updaterEnabled && webUpdaterEnabled" href="#" class="button primary" @click="clickUpdaterButton">{{ t('updatenotification', 'Open updater') }}</a> @@ -50,6 +50,9 @@ :href="downloadLink" class="button" :class="{ hidden: !updaterEnabled }">{{ t('updatenotification', 'Download now') }}</a> + <span v-if="updaterEnabled && !webUpdaterEnabled"> + {{ t('updatenotification', 'Please use the command line updater to update.') }} + </span> <div v-if="whatsNew" class="whatsNew"> <div class="toggleWhatsNew"> <a v-click-outside="hideMenu" class="button" @click="toggleMenu">{{ t('updatenotification', 'What\'s new?') }}</a> @@ -132,6 +135,7 @@ export default { newVersionString: '', lastCheckedDate: '', isUpdateChecked: false, + webUpdaterEnabled: true, updaterEnabled: true, versionIsEol: false, downloadLink: '', @@ -322,6 +326,7 @@ export default { this.newVersionString = data.newVersionString this.lastCheckedDate = data.lastChecked this.isUpdateChecked = data.isUpdateChecked + this.webUpdaterEnabled = data.webUpdaterEnabled this.updaterEnabled = data.updaterEnabled this.downloadLink = data.downloadLink this.isNewVersionAvailable = data.isNewVersionAvailable |