-
- check_circle
- radio_button_off
-
+
+
+
+
+
|
-
-
+ |
+
+
+
|
-
+ |
@@ -31,7 +45,7 @@
{{ props.item.getLocation() }}
|
-
+ |
@@ -41,11 +55,12 @@
{{ props.item.TakenAt | luxon:locale }}
|
-
+
- favorite
- favorite_border
+ favorite
+ favorite_border
|
@@ -75,7 +90,31 @@
],
};
},
+ watch: {
+ photos: function (photos) {
+ this.selected.splice(0);
+
+ for (let i = 0; i <= photos.length; i++) {
+ if(this.$clipboard.has(photos[i])) {
+ this.selected.push(photos[i]);
+ }
+ }
+ },
+ selection: function () {
+ this.selected.splice(0);
+
+ for (let i = 0; i <= this.photos.length; i++) {
+ if(this.$clipboard.has(this.photos[i])) {
+ this.selected.push(this.photos[i]);
+ }
+ }
+ },
+ },
methods: {
+ toggleSelection(props) {
+ this.$clipboard.toggle(props.item);
+ props.selected = this.$clipboard.has(props.item);
+ }
}
};
diff --git a/frontend/src/component/p-photo-mosaic.vue b/frontend/src/component/p-photo-mosaic.vue
index 020f3a9be..7f2492090 100644
--- a/frontend/src/component/p-photo-mosaic.vue
+++ b/frontend/src/component/p-photo-mosaic.vue
@@ -53,6 +53,13 @@