Prepracovane zobrazeni seznamu fotke

This commit is contained in:
Michal Kváček
2023-10-27 23:01:11 +02:00
parent 100e1fa33b
commit a63efc44d8
6 changed files with 132 additions and 60 deletions
+12
View File
@@ -0,0 +1,12 @@
import {ref} from "vue";
import {flight} from "src/composables/objects/flight";
export const openPhotoDetail = ref(false);
export const photoData = ref(null);
export const openDetail = ({photo, idx, allPhotos}) => {
openPhotoDetail.value = true;
photoData.value = {photo, idx, allPhotos};
}
export const openPhotoFromList = ({photo, idx}) => {
openDetail({photo, idx, allPhotos: flight.value.photos});
}