From fc5dcaa810d9db1b731b3df5f20d32ced30deb03 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 10 Jan 2025 12:31:07 +0100 Subject: [PATCH 1/2] fix(files): close submenu on main actions state change Signed-off-by: skjnldsv --- apps/files/src/components/FileEntry/FileEntryActions.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue index a536546f8472b..54c40ecfe840b 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -257,6 +257,13 @@ export default defineComponent({ }, }, + watch: { + // Close any submenu when the menu is closed + openedMenu() { + this.openedSubmenu = null + }, + }, + methods: { actionDisplayName(action: FileAction) { try { From a39a7d09ffdce851cfe8f3262c48aeecc76da1fd Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 10 Jan 2025 12:41:25 +0100 Subject: [PATCH 2/2] fix(files): rename actions submenu back entry Signed-off-by: skjnldsv --- apps/files/src/components/FileEntry/FileEntryActions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue index 54c40ecfe840b..b562b445f7f41 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -68,7 +68,7 @@ - {{ actionDisplayName(openedSubmenu) }} + {{ t('files', 'Back') }}