Prepracovane zobrazeni seznamu fotke
This commit is contained in:
@@ -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});
|
||||
}
|
||||
Reference in New Issue
Block a user