Skip to content

Commit c8fce63

Browse files
committed
Reset loading state on UserRow mount
Signed-off-by: Louis Chemineau <[email protected]>
1 parent 992c03d commit c8fce63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/settings/src/components/Users/UserRow.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ export default {
506506
if (this.user.manager) {
507507
await this.initManager(this.user.manager)
508508
}
509+
510+
// Reset loading state before mounting the component.
511+
// This is useful when we disable a user as the loading state cannot be properly reset upon promise resolution.
512+
Object.keys(this.idState.loading).forEach(key => (this.idState.loading[key] = false))
509513
},
510514
511515
methods: {

0 commit comments

Comments
 (0)