+
+
e.target.src='/apps/memories/img/error.svg'"
- v-bind:style="{
+ :style="{
width: rowHeight + 'px',
height: rowHeight + 'px',
}"/>
@@ -38,6 +40,11 @@ export default {
/** Passthrough */
getPreviewUrl: getPreviewUrl,
+ /** Pass to parent */
+ click() {
+ this.$emit('clickImg', this);
+ },
+
/** Open viewer */
async openFile() {
// Check if this is a placeholder
@@ -129,11 +136,37 @@ export default {
this.day.count = this.day.detail.length;
this.$emit('reprocess', this.day);
},
+
+ toggleSelect() {
+ this.$emit('select', this.data);
+ this.$forceUpdate();
+ },
}
}
\ No newline at end of file
diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue
index e8a60088..00cfa02b 100644
--- a/src/components/Timeline.vue
+++ b/src/components/Timeline.vue
@@ -1,5 +1,6 @@
+
+ @select="selectPhoto"
+ @reprocess="processDay"
+ @clickImg="clickPhoto" />