Merge pull request #20117 from nextcloud/fix/noid/updatenotification-channel-click-outside

Close updatenotification channel selector on click outside
This commit is contained in:
Roeland Jago Douma 2020-03-23 22:08:09 +01:00 committed by GitHub
commit 15ba3d5124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
<h3 class="update-channel-selector">
{{ t('updatenotification', 'Update channel:') }}
<div class="update-menu">
<div v-click-outside="closeUpdateChannelMenu" class="update-menu">
<span class="icon-update-menu" @click="toggleUpdateChannelMenu">
{{ localizedChannelName }}
<span class="icon-triangle-s" />
@ -419,6 +419,9 @@ export default {
toggleMenu: function() {
this.openedWhatsNew = !this.openedWhatsNew
},
closeUpdateChannelMenu: function() {
this.openedUpdateChannelMenu = false
},
hideMenu: function() {
this.openedWhatsNew = false
},