diff --git a/packages/nc-gui/components/general/WorkspaceIconSelector.vue b/packages/nc-gui/components/general/WorkspaceIconSelector.vue index 4c28c8a26f..85859b09f6 100644 --- a/packages/nc-gui/components/general/WorkspaceIconSelector.vue +++ b/packages/nc-gui/components/general/WorkspaceIconSelector.vue @@ -15,7 +15,7 @@ interface Props { const props = withDefaults(defineProps(), {}) -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 }