mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 23:46:53 +00:00
fix(nc-gui): auto save workspace icon
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user