diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2023-08-01 15:32:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-01 15:32:03 +0900 |
| commit | 8a72a05958f415aa035ae3523e28c0b75f2a8d26 (patch) | |
| tree | fa255718093f498c936008ba21665654521610bc /packages/frontend/src/components/MkNote.vue | |
| parent | update deps (#11409) (diff) | |
| download | sharkey-8a72a05958f415aa035ae3523e28c0b75f2a8d26.tar.gz sharkey-8a72a05958f415aa035ae3523e28c0b75f2a8d26.tar.bz2 sharkey-8a72a05958f415aa035ae3523e28c0b75f2a8d26.zip | |
enhance(frontend): ユーザーメニューでスイッチでユーザーリストに追加・削除できるように (#11439)
* メニューのトグルをいい感じにする
* user list toggle!
* add changelog
* fix
* stop
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 962a5eef5b..6cd1a4c4b5 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -408,14 +408,16 @@ function onContextmenu(ev: MouseEvent): void { ev.preventDefault(); react(); } else { - os.contextMenu(getNoteMenu({ note: note, translating, translation, menuButton, isDeleted, currentClip: currentClip?.value }), ev).then(focus); + const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, menuButton, isDeleted, currentClip: currentClip?.value }); + os.contextMenu(menu, ev).then(focus).finally(cleanup); } } function menu(viaKeyboard = false): void { - os.popupMenu(getNoteMenu({ note: note, translating, translation, menuButton, isDeleted, currentClip: currentClip?.value }), menuButton.value, { + const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, menuButton, isDeleted, currentClip: currentClip?.value }); + os.popupMenu(menu, menuButton.value, { viaKeyboard, - }).then(focus); + }).then(focus).finally(cleanup); } async function clip() { |