]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): fix set manager loading indicator in users settings
authorGrigorii K. Shartsev <me@shgk.me>
Wed, 16 Aug 2023 13:44:15 +0000 (15:44 +0200)
committerGrigorii K. Shartsev <me@shgk.me>
Wed, 16 Aug 2023 13:48:32 +0000 (15:48 +0200)
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
apps/settings/src/components/Users/UserRow.vue

index 7e99a18370df498b89b03f6599453684f7a23855..1315f632c49b81560a5c68a8250aedc5acf41259 100644 (file)
@@ -568,13 +568,13 @@ export default {
                        })
                },
 
-               updateUserManager(manager) {
+               async updateUserManager(manager) {
                        if (manager === null) {
                                this.idState.currentManager = ''
                        }
                        this.idState.loading.manager = true
                        try {
-                               this.$store.dispatch('setUserData', {
+                               await this.$store.dispatch('setUserData', {
                                        userid: this.user.id,
                                        key: 'manager',
                                        value: this.idState.currentManager ? this.idState.currentManager.id : '',