Browse Source

fix(nc-gui): add role permission for base icon color change

pull/7807/head
Ramesh Mane 9 months ago
parent
commit
712f63d737
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 2
      packages/nc-gui/components/general/BaseIconColorPicker.vue

2
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -428,7 +428,7 @@ const projectDelete = () => {
:key="`${base.id}_${parseProp(base.meta).iconHue}`" :key="`${base.id}_${parseProp(base.meta).iconHue}`"
:hue="parseProp(base.meta).iconHue" :hue="parseProp(base.meta).iconHue"
size="small" size="small"
:readonly="base?.type && base?.type !== 'database'" :readonly="(base?.type && base?.type !== 'database') || !isUIAllowed('baseRename')"
@color-selected="setColor($event, base)" @color-selected="setColor($event, base)"
> >
<template #default> <template #default>

2
packages/nc-gui/components/general/BaseIconColorPicker.vue

@ -76,7 +76,7 @@ watch(
'h-10 w-10 text-2xl': size === 'large', 'h-10 w-10 text-2xl': size === 'large',
'h-14 w-16 text-5xl': size === 'xlarge', 'h-14 w-16 text-5xl': size === 'xlarge',
}" }"
@click.stop="onClick" @click="onClick"
> >
<template v-if="hue !== 0 && !hue && colorRef.h === defaultHueValue"> <template v-if="hue !== 0 && !hue && colorRef.h === defaultHueValue">
<slot name="default" /> <slot name="default" />

Loading…
Cancel
Save