mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Reset loading state on UserRow mount
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
992c03d842
commit
c8fce63428
1 changed files with 4 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue