fix(uploader): upload to temp bucket and fix initialFiles reactivity to prevent file vanishing
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -862,7 +862,7 @@ const saveProperty = async () => {
|
||||
<i class="pi pi-file-pdf text-xl"></i>
|
||||
<span>اسناد و مدارک تصویری / پیدیاف ملک</span>
|
||||
</div>
|
||||
<ImageUploader v-model="documentUrlsWithData" bucketName="documents" :maxFiles="10" />
|
||||
<ImageUploader v-model="documentUrlsWithData" bucketName="temp" :maxFiles="10" />
|
||||
<div v-if="documentUrlsWithData && documentUrlsWithData.length > 0" class="pt-2">
|
||||
<label class="block text-xs font-semibold text-surface-600 dark:text-surface-400 mb-2">فایلها و اسناد بارگذاریشده ({{ documentUrlsWithData.length }} مورد)</label>
|
||||
<ImageGallery v-model="documentUrlsWithData" galleryId="propertyDocumentsGallery" />
|
||||
@@ -904,7 +904,7 @@ const saveProperty = async () => {
|
||||
<i class="pi pi-image text-xl"></i>
|
||||
<span>تصاویر ملک</span>
|
||||
</div>
|
||||
<ImageUploader v-model="mainImageUrlsWithData" bucketName="properties" :maxFiles="10" />
|
||||
<ImageUploader v-model="mainImageUrlsWithData" bucketName="temp" :maxFiles="10" />
|
||||
<div v-if="mainImageUrlsWithData && mainImageUrlsWithData.length > 0" class="pt-2">
|
||||
<label class="block text-xs font-semibold text-surface-600 dark:text-surface-400 mb-2">گالری تصاویر ({{ mainImageUrlsWithData.length }} مورد)</label>
|
||||
<ImageGallery v-model="mainImageUrlsWithData" galleryId="propertyMainImagesGallery" />
|
||||
|
||||
Reference in New Issue
Block a user