]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): focus on trigger after federation scope dialog close
authorGrigorii K. Shartsev <me@shgk.me>
Mon, 5 Feb 2024 11:57:40 +0000 (12:57 +0100)
committerGrigorii K. Shartsev <me@shgk.me>
Tue, 6 Feb 2024 09:47:42 +0000 (10:47 +0100)
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
apps/settings/src/components/PersonalInfo/shared/FederationControl.vue

index cfe5b0dcee75af15f38ecd3c930fa82f27c67646..bf22c0ac081e9fdce75d32f2dcac401100849715 100644 (file)
@@ -21,7 +21,8 @@
 -->
 
 <template>
-       <NcActions class="federation-actions"
+       <NcActions ref="federationActions"
+               class="federation-actions"
                :class="{ 'federation-actions--additional': additional }"
                :aria-label="ariaLabel"
                :default-icon="scopeIcon"
@@ -151,6 +152,9 @@ export default {
                        } else {
                                await this.updateAdditionalScope(scope)
                        }
+
+                       // TODO: provide focus method from NcActions
+                       this.$refs.federationActions.$refs.menuButton.$el.focus()
                },
 
                async updatePrimaryScope(scope) {