fix(nc-gui): auto save workspace icon

This commit is contained in:
Ramesh Mane
2024-11-20 17:11:15 +00:00
parent 9d6ca11229
commit 8c2e01e9bf

View File

@@ -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
}