Pridan fotoeditor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user