Pridan fotoeditor

This commit is contained in:
Michal Kváček
2023-10-27 22:30:47 +02:00
parent 4c8952117b
commit 100e1fa33b
18 changed files with 502 additions and 23 deletions
+2 -2
View File
@@ -101,10 +101,10 @@ const deletePhoto = (id) => {
});
}
const rotatePhotos = ({photos, angle}) => {
const rotatePhotos = ({photos, direction}) => {
const promises = [];
for (const photo of photos) {
promises.push(usePhotosStore().rotate(photo.id, angle));
promises.push(usePhotosStore().changeOrientation(photo.id, direction));
}
let success = 0;