diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index 4a620c5276..7d9c703132 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -678,3 +678,7 @@ input[type='number'] { @apply xs:(visible opacity-100 !text-gray-500) } } + +.ant-message-notice-content { + @apply !rounded-md; +} \ No newline at end of file diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index e7d4b84c58..17873474d6 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -41,11 +41,13 @@ interface Props { showNextPrevIcons?: boolean firstRow?: boolean lastRow?: boolean + closeAfterSave?: boolean + newRecordHeader?: string } const props = defineProps() -const emits = defineEmits(['update:modelValue', 'cancel', 'next', 'prev']) +const emits = defineEmits(['update:modelValue', 'cancel', 'next', 'prev', 'createdRecord']) const { activeView } = storeToRefs(useViewsStore()) @@ -201,6 +203,12 @@ const save = async () => { reloadTrigger?.trigger() } isUnsavedFormExist.value = false + + if (props.closeAfterSave) { + isExpanded.value = false + } + + emits('createdRecord', _row.value.row) } const isPreventChangeModalOpen = ref(false) @@ -486,12 +494,17 @@ export default {
+
+ {{ props.newRecordHeader ?? $t('activity.newRecord') }} +
{{ displayValue }}
-
New Record
{