diff options
author | Louis Chemineau <louis@chmn.me> | 2023-09-14 16:15:41 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-09-14 16:15:41 +0200 |
commit | c8fce634280aa1711f4e37d654871788c00bca5d (patch) | |
tree | eefddac83c9c8097389082eb22854d0b45ffa8ee /apps/settings | |
parent | 992c03d842f962c2900fab715104d310d19dc6bf (diff) | |
download | nextcloud-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/settings')
-rw-r--r-- | apps/settings/src/components/Users/UserRow.vue | 4 |
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: { |