From 543419234dfc27cfe9fd9a6754817d337dc0474e Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 21 Apr 2022 00:59:16 +0300 Subject: [PATCH] fix: 'owner' role color Signed-off-by: mertmit --- packages/nc-gui/components/auth/shareOrInviteModal.vue | 2 +- packages/nc-gui/components/auth/userManagement.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/auth/shareOrInviteModal.vue b/packages/nc-gui/components/auth/shareOrInviteModal.vue index 573c0cbf6e..65e1277854 100644 --- a/packages/nc-gui/components/auth/shareOrInviteModal.vue +++ b/packages/nc-gui/components/auth/shareOrInviteModal.vue @@ -206,7 +206,7 @@ export default { const colors = this.$store.state.windows.darkTheme ? enumColor.dark : enumColor.light; - return this.roles.reduce((o, r, i) => { + return ['owner'].concat(this.roles).reduce((o, r, i) => { o[r] = colors[i % colors.length]; return o; }, {}); diff --git a/packages/nc-gui/components/auth/userManagement.vue b/packages/nc-gui/components/auth/userManagement.vue index f7e123bc48..4a7b861ad3 100644 --- a/packages/nc-gui/components/auth/userManagement.vue +++ b/packages/nc-gui/components/auth/userManagement.vue @@ -494,7 +494,7 @@ export default { const colors = this.$store.state.windows.darkTheme ? enumColor.dark : enumColor.light; - return this.roles.reduce((o, r, i) => { + return ['owner'].concat(this.roles).reduce((o, r, i) => { o[r] = colors[i % colors.length]; return o; }, {});