fix copy form, remove form title on create (#118)

This commit is contained in:
Chirag Chhatrala 2023-04-26 20:35:22 +05:30 committed by GitHub
parent e165242e57
commit 8cb368f455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -14,8 +14,10 @@
</svg>
Go back
</a>
<h3 class="font-semibold text-lg">{{ form.title }}</h3>
<small v-if="isEdit" class="text-gray-500">Edited {{ form.last_edited_human }}</small>
<template v-if="isEdit">
<h3 class="font-semibold text-lg">{{ form.title }}</h3>
<small class="text-gray-500">Edited {{ form.last_edited_human }}</small>
</template>
</div>
<div class="p-4 border-b sticky top-0 z-10 bg-white">

View File

@ -1,6 +1,6 @@
<template>
<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">
<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"/>
@ -147,7 +147,7 @@ export default {
// Clean copy from form
['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',
'created_at', 'deleted_at'].forEach((property) => {
'created_at', 'deleted_at', 'last_edited_human'].forEach((property) => {
if (copyForm.hasOwnProperty(property)) {
delete copyForm[property]
}