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
@@ -108,7 +108,10 @@ const copyLinkToClipboard = () => {
<div class="text-right">
<q-btn flat class="q-my-sm" :to="{name: 'flightEdit', params: {id: flightId, step: 'basic'}}" icon="edit" color="primary">Upravit informace</q-btn>
</div>
<FlightBasicInfo :flight="flight" :show-copilots="true"/>
<FlightBasicInfo
:flight="flight"
:copilot-detail-route="{name: 'copilotDetail'}"
/>
<div class="text-right">
<q-btn flat class="q-my-sm" :to="{name: 'flightEdit', params: {id: flightId, step: 'notes'}}" icon="edit" color="primary">Upravit text</q-btn>
+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;