aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-09-14 16:15:41 +0200
committerLouis Chemineau <louis@chmn.me>2023-09-14 16:15:41 +0200
commitc8fce634280aa1711f4e37d654871788c00bca5d (patch)
treeeefddac83c9c8097389082eb22854d0b45ffa8ee /apps
parent992c03d842f962c2900fab715104d310d19dc6bf (diff)
downloadnextcloud-server-c8fce634280aa1711f4e37d654871788c00bca5d.tar.gz
nextcloud-server-c8fce634280aa1711f4e37d654871788c00bca5d.zip
Reset loading state on UserRow mount
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-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: {