Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-02-17 11:34:01 +0300
committerVincent Petry <vincent@nextcloud.com>2021-02-18 10:53:57 +0300
commit6ce469132c80a5a5cc45b1e7e215f43b538afd93 (patch)
treedbb295d5d2fe16e4c71a930c979f3897a4fd5c45 /apps/updatenotification/src
parentd4b99c81f32453f57cb2c132fa46c6b5219b9e99 (diff)
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.vue7
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