From c8fce634280aa1711f4e37d654871788c00bca5d Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 14 Sep 2023 16:15:41 +0200 Subject: Reset loading state on UserRow mount Signed-off-by: Louis Chemineau --- apps/settings/src/components/Users/UserRow.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue index 5593ecc76e1..86c192b6824 100644 --- a/apps/settings/src/components/Users/UserRow.vue +++ b/apps/settings/src/components/Users/UserRow.vue @@ -506,6 +506,10 @@ export default { if (this.user.manager) { await this.initManager(this.user.manager) } + + // Reset loading state before mounting the component. + // This is useful when we disable a user as the loading state cannot be properly reset upon promise resolution. + Object.keys(this.idState.loading).forEach(key => (this.idState.loading[key] = false)) }, methods: { -- cgit v1.2.3