diff options
author | Gary Kim <gary@garykim.dev> | 2020-03-24 00:02:40 +0800 |
---|---|---|
committer | Gary Kim <gary@garykim.dev> | 2020-03-24 00:02:40 +0800 |
commit | d0c1a66c5476c00b2ace1827768a25a80dcd9fe6 (patch) | |
tree | 5cefae8ef2a57027f026f3b8931ea0ba15c7f41b /apps/updatenotification/src | |
parent | 48d59ee35e808a97bde02135c459478cf9709b25 (diff) | |
download | nextcloud-server-d0c1a66c5476c00b2ace1827768a25a80dcd9fe6.tar.gz nextcloud-server-d0c1a66c5476c00b2ace1827768a25a80dcd9fe6.zip |
Close updatenotification channel selector on click outside
While the vue-click-outside package was set up and
imported, it wasn't being used yet.
This commit sets up to use vue-click-outside
on the channel selector in updatenotification
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'apps/updatenotification/src')
-rw-r--r-- | apps/updatenotification/src/components/UpdateNotification.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue index a90c0ed3a9d..4d7df8d68d4 100644 --- a/apps/updatenotification/src/components/UpdateNotification.vue +++ b/apps/updatenotification/src/components/UpdateNotification.vue @@ -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 }, |