Pridani stranky pro verejny prehled letu s danym kopilotem

This commit is contained in:
Michal Kváček
2023-11-02 09:03:12 +01:00
parent 40f21d159e
commit 6b1e220d42
9 changed files with 79 additions and 12 deletions
+6 -1
View File
@@ -41,7 +41,12 @@ watch(() => [adjustment.value, croppedAreaForPreview.value], debounce(() => {
}, 200), {deep: true, immediate: true});
const savePhotoAdjustment = (photoId) => {
const adjustmentInput = {...adjustment.value, crop: croppedArea.value};
const adjustmentInput = {...adjustment.value};
if (croppedArea.value.left !== null) {
adjustmentInput.crop = {...croppedArea.value}
}
usePhotosStore().adjust(photoId, adjustmentInput).then((data) => {
noCacheTimestamp.value = (new Date()).getTime();
photo.value = data;