Use sync modifier with openMenu

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2022-01-08 10:48:36 +01:00 committed by nextcloud-command
parent 9ed12e8946
commit 79f14e8299
12 changed files with 7 additions and 6 deletions

View File

@ -50,15 +50,13 @@
:groups="groups"
:languages="languages"
:loading="loading"
:opened-menu="openedMenu"
:opened-menu.sync="openedMenu"
:settings="settings"
:show-config="showConfig"
:sub-admins-groups="subAdminsGroups"
:user-actions="userActions"
:user="user"
:class="{'row--menu-opened': openedMenu}"
@hideMenu="hideMenu"
@toggleMenu="toggleMenu" />
:class="{'row--menu-opened': openedMenu}" />
<div v-else
:class="{
'disabled': loading.delete || loading.disable,

View File

@ -69,7 +69,7 @@
v-click-outside="hideMenu"
class="icon-more"
:aria-label="t('settings', 'Toggle user actions menu')"
@click.prevent="$emit('toggle-menu')" />
@click.prevent="toggleMenu" />
<div class="popovermenu" :class="{ 'open': openedMenu }" :aria-expanded="openedMenu">
<PopoverMenu :menu="userActions" />
</div>
@ -176,8 +176,11 @@ export default {
},
},
methods: {
toggleMenu() {
this.$emit('update:openedMenu', !this.openedMenu)
},
hideMenu() {
this.$emit('hide-menu')
this.$emit('update:openedMenu', false)
},
toggleEdit() {
this.$emit('update:editing', true)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.