aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/settings/src/components/Users/UserRow.vue4
1 files changed, 4 insertions, 0 deletions
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: {