fix copy form, remove form title on create (#118)
This commit is contained in:
parent
e165242e57
commit
8cb368f455
|
@ -14,8 +14,10 @@
|
||||||
</svg>
|
</svg>
|
||||||
Go back
|
Go back
|
||||||
</a>
|
</a>
|
||||||
|
<template v-if="isEdit">
|
||||||
<h3 class="font-semibold text-lg">{{ form.title }}</h3>
|
<h3 class="font-semibold text-lg">{{ form.title }}</h3>
|
||||||
<small v-if="isEdit" class="text-gray-500">Edited {{ form.last_edited_human }}</small>
|
<small class="text-gray-500">Edited {{ form.last_edited_human }}</small>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="p-4 border-b sticky top-0 z-10 bg-white">
|
<div class="p-4 border-b sticky top-0 z-10 bg-white">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<collapse class="p-4 w-full border-b" :default-value="isCollapseOpen" @click="onClickCollapse">
|
<collapse class="p-4 w-full border-b" :default-value="isCollapseOpen" @click="onClickCollapse">
|
||||||
<template #title class="test">
|
<template #title>
|
||||||
<h3 id="v-step-0" class="font-semibold text-lg">
|
<h3 id="v-step-0" class="font-semibold text-lg">
|
||||||
<svg class="h-5 w-5 inline mr-2 -mt-1" :class="{'text-blue-600':isCollapseOpen, 'text-gray-500':!isCollapseOpen}" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="h-5 w-5 inline mr-2 -mt-1" :class="{'text-blue-600':isCollapseOpen, 'text-gray-500':!isCollapseOpen}" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M10 13.3332V9.99984M10 6.6665H10.0083M18.3333 9.99984C18.3333 14.6022 14.6024 18.3332 10 18.3332C5.39763 18.3332 1.66667 14.6022 1.66667 9.99984C1.66667 5.39746 5.39763 1.6665 10 1.6665C14.6024 1.6665 18.3333 5.39746 18.3333 9.99984Z" stroke="currentColor" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M10 13.3332V9.99984M10 6.6665H10.0083M18.3333 9.99984C18.3333 14.6022 14.6024 18.3332 10 18.3332C5.39763 18.3332 1.66667 14.6022 1.66667 9.99984C1.66667 5.39746 5.39763 1.6665 10 1.6665C14.6024 1.6665 18.3333 5.39746 18.3333 9.99984Z" stroke="currentColor" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
||||||
// Clean copy from form
|
// Clean copy from form
|
||||||
['title', 'description', 'properties', 'cleanings', 'views_count', 'submissions_count', 'workspace', 'workspace_id', 'updated_at',
|
['title', 'description', 'properties', 'cleanings', 'views_count', 'submissions_count', 'workspace', 'workspace_id', 'updated_at',
|
||||||
'share_url', 'slug', 'notion_database_url', 'id', 'database_id', 'database_fields_update', 'creator',
|
'share_url', 'slug', 'notion_database_url', 'id', 'database_id', 'database_fields_update', 'creator',
|
||||||
'created_at', 'deleted_at'].forEach((property) => {
|
'created_at', 'deleted_at', 'last_edited_human'].forEach((property) => {
|
||||||
if (copyForm.hasOwnProperty(property)) {
|
if (copyForm.hasOwnProperty(property)) {
|
||||||
delete copyForm[property]
|
delete copyForm[property]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue