Merge pull request #20117 from nextcloud/fix/noid/updatenotification-channel-click-outside
Close updatenotification channel selector on click outside
This commit is contained in:
commit
15ba3d5124
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
<h3 class="update-channel-selector">
|
<h3 class="update-channel-selector">
|
||||||
{{ t('updatenotification', 'Update channel:') }}
|
{{ t('updatenotification', 'Update channel:') }}
|
||||||
<div class="update-menu">
|
<div v-click-outside="closeUpdateChannelMenu" class="update-menu">
|
||||||
<span class="icon-update-menu" @click="toggleUpdateChannelMenu">
|
<span class="icon-update-menu" @click="toggleUpdateChannelMenu">
|
||||||
{{ localizedChannelName }}
|
{{ localizedChannelName }}
|
||||||
<span class="icon-triangle-s" />
|
<span class="icon-triangle-s" />
|
||||||
|
@ -419,6 +419,9 @@ export default {
|
||||||
toggleMenu: function() {
|
toggleMenu: function() {
|
||||||
this.openedWhatsNew = !this.openedWhatsNew
|
this.openedWhatsNew = !this.openedWhatsNew
|
||||||
},
|
},
|
||||||
|
closeUpdateChannelMenu: function() {
|
||||||
|
this.openedUpdateChannelMenu = false
|
||||||
|
},
|
||||||
hideMenu: function() {
|
hideMenu: function() {
|
||||||
this.openedWhatsNew = false
|
this.openedWhatsNew = false
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue