File tree Expand file tree Collapse file tree
resources/js/components/modals Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 </Dialog >
3030</template >
3131<script setup lang="ts">
32+ import { usePhotoRoute } from " @/composables/photo/photoRoute" ;
3233import PhotoService from " @/services/photo-service" ;
3334import { useLycheeStateStore } from " @/stores/LycheeState" ;
3435import { storeToRefs } from " pinia" ;
3536import Button from " primevue/button" ;
3637import Dialog from " primevue/dialog" ;
38+ import { useRouter } from " vue-router" ;
39+
40+ const router = useRouter ();
41+ const { getParentId } = usePhotoRoute (router );
3742
3843const lycheeState = useLycheeStateStore ();
3944const {
@@ -84,6 +89,6 @@ function isDownloadable(sv: number): boolean {
8489}
8590
8691function download(sv : number ) {
87- PhotoService .download ([props .photo .id ], svtoVariant (sv ));
92+ PhotoService .download ([props .photo .id ], getParentId (), svtoVariant (sv ));
8893}
8994 </script >
You can’t perform that action at this time.
0 commit comments