diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue
index 16a98799a8647..7a7abc9801e4f 100644
--- a/apps/updatenotification/src/components/UpdateNotification.vue
+++ b/apps/updatenotification/src/components/UpdateNotification.vue
@@ -85,7 +85,11 @@
{{ t('updatenotification', 'Your version is up to date.') }}
-
+
@@ -108,18 +112,18 @@
-
-
+ @update:modelValue="changeReleaseChannel">
+
+
+
{{ channel.longtext }}
@@ -131,8 +135,8 @@
- {},
+ icon: nonDefaultIcons[this.currentChannel] || IconPencil,
+ value: this.currentChannel,
})
}
return channelList
},
- isNonDefaultChannel() {
- return this.currentChannel !== 'enterprise' && this.currentChannel !== 'stable' && this.currentChannel !== 'beta'
- },
-
localizedChannelName() {
switch (this.currentChannel) {
case 'enterprise':
@@ -320,7 +328,7 @@ export default {
},
watch: {
- notifyGroups(selectedOptions) {
+ notifyGroups() {
if (!this.enableChangeWatcher) {
// The first time is when loading the app
this.enableChangeWatcher = true
@@ -429,16 +437,16 @@ export default {
form.submit()
})
},
- changeReleaseChannelToEnterprise() {
- this.changeReleaseChannel('enterprise')
- },
- changeReleaseChannelToStable() {
- this.changeReleaseChannel('stable')
- },
- changeReleaseChannelToBeta() {
- this.changeReleaseChannel('beta')
+
+ isNonDefaultChannel(channel) {
+ return !['enterprise', 'stable', 'beta'].includes(channel)
},
+
changeReleaseChannel(channel) {
+ if (this.isNonDefaultChannel(channel)) {
+ return
+ }
+
this.currentChannel = channel
axios.post(generateUrl('/apps/updatenotification/channel'), {
@@ -499,52 +507,10 @@ export default {
.applist {
margin-bottom: 25px;
}
-
- .update-menu {
- position: relative;
- cursor: pointer;
- margin-left: 3px;
- display: inline-block;
- padding: 10px;
- border-radius: 10px;
- border: 2px solid var(--color-border-dark);
- .icon-update-menu {
- cursor: inherit;
- .icon-triangle-s {
- display: inline-block;
- vertical-align: middle;
- cursor: inherit;
- opacity: 1;
- }
- }
- }
}