Reset loading state on UserRow mount

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2023-09-14 16:15:41 +02:00
parent 992c03d842
commit c8fce63428

View file

@ -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: {