mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
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>
This commit is contained in:
parent
dcf186d9ef
commit
78e93fc72b
3 changed files with 6 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -65,7 +65,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"></span>
|
||||
|
|
@ -358,6 +358,9 @@
|
|||
toggleMenu: function() {
|
||||
this.openedWhatsNew = !this.openedWhatsNew;
|
||||
},
|
||||
closeUpdateChannelMenu: function() {
|
||||
this.openedUpdateChannelMenu = false
|
||||
},
|
||||
hideMenu: function() {
|
||||
this.openedWhatsNew = false;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue