Editace fotek v modalu, lepsi datetime picker
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import {formatDatetime, minutesToHumanReadable} from "src/composables/datetimeUtils";
|
||||
import {computed} from "vue";
|
||||
import {useQuasar} from "quasar";
|
||||
import {useFlightsStore} from "stores/Flights";
|
||||
|
||||
const props = defineProps({
|
||||
items: {
|
||||
@@ -19,11 +20,10 @@ const deleteFlight = (flightId) => {
|
||||
cancel: true,
|
||||
persistent: true
|
||||
}).onOk(() => {
|
||||
// flightsStore.deleteItem(flightId);
|
||||
useFlightsStore().deleteItem(flightId);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const totalFlightTime = computed(() => {
|
||||
return props.items.reduce((acc, flight) => acc + flight.flightDurationMinutes, 0);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user