Browse Source

fix(nc-gui): auto save workspace icon

pull/9722/head
Ramesh Mane 1 week ago
parent
commit
8c2e01e9bf
  1. 8
      packages/nc-gui/components/general/WorkspaceIconSelector.vue

8
packages/nc-gui/components/general/WorkspaceIconSelector.vue

@ -15,7 +15,7 @@ interface Props {
const props = withDefaults(defineProps<Props>(), {})
const emits = defineEmits(['update:icon', 'update:iconType'])
const emits = defineEmits(['update:icon', 'update:iconType', 'submit'])
const { currentWorkspace } = toRefs(props)
@ -58,6 +58,8 @@ const selectIcon = (icon: string) => {
vIcon.value = icon
vIconType.value = WorkspaceIconType.ICON
emits('submit')
isOpen.value = false
}
@ -84,6 +86,8 @@ function selectEmoji(_emoji: any) {
vIcon.value = _emoji.native
vIconType.value = WorkspaceIconType.EMOJI
emits('submit')
isOpen.value = false
}
@ -114,6 +118,8 @@ const handleOnUploadImage = async (data: any) => {
vIcon.value = data
vIconType.value = WorkspaceIconType.IMAGE
emits('submit')
isOpen.value = false
}

Loading…
Cancel
Save