Pridani od/do k eventum, fix datetime pickeru pro vyber pouze data, pridano URL k otevrene fotce

This commit is contained in:
Michal Kváček
2023-09-25 06:25:53 +02:00
parent b64c426179
commit 36b0178b97
9 changed files with 106 additions and 28 deletions
+10 -5
View File
@@ -16,7 +16,7 @@ import FlightFormNotes from "components/flights/form/FlightFormNotes.vue";
import FlightFormPhotos from "components/flights/form/FlightFormPhotos.vue";
import {usePhotosStore} from "stores/Photo";
import PhotosList from "components/photos/PhotosList.vue";
import {successObject, warningObject} from "src/composables/dialog";
import {errorObject, successObject, warningObject} from "src/composables/dialog";
import PhotoFormDialog from "components/photos/PhotoFormDialog.vue";
import FlightFormTrack from "components/flights/form/FlightFormTrack.vue";
import {fetchFlight, flight, loading} from "src/composables/objects/flight";
@@ -118,8 +118,15 @@ const rotatePhotos = ({photos, angle}) => {
flight.value.photos[idx] = value;
}
if (success > 0)
$q.notify(successObject("Otočeno " + success + " fotek"));
const error = result.length - success;
if (success > 0) {
$q.notify(successObject("Otočeno " + success + " fotografií"));
}
if (error > 0) {
$q.notify(errorObject(`Nepovedlo se otočit ${error} fotografi`))
}
});
}
</script>
@@ -190,7 +197,5 @@ const rotatePhotos = ({photos, angle}) => {
<FlightFormNotes @save="handleFlightEdit" :events="events" :flight="flight"/>
</q-tab-panel>
</q-tab-panels>
</template>
</template>