Преглед изворни кода

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>
tags/v19.0.0beta1
Gary Kim пре 4 година
родитељ
комит
d0c1a66c54
No account linked to committer's email address

+ 2
- 2
apps/updatenotification/js/updatenotification.js
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 1
- 1
apps/updatenotification/js/updatenotification.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 4
- 1
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
},

Loading…
Откажи
Сачувај