Browse Source

fix: 'owner' role color

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/1806/head
mertmit 3 years ago
parent
commit
543419234d
  1. 2
      packages/nc-gui/components/auth/shareOrInviteModal.vue
  2. 2
      packages/nc-gui/components/auth/userManagement.vue

2
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;
}, {});

2
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;
}, {});

Loading…
Cancel
Save