Browse Source

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

pull/7807/head
Ramesh Mane 10 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}`"
:hue="parseProp(base.meta).iconHue"
size="small"
:readonly="base?.type && base?.type !== 'database'"
:readonly="(base?.type && base?.type !== 'database') || !isUIAllowed('baseRename')"
@color-selected="setColor($event, base)"
>
<template #default>

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

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

Loading…
Cancel
Save