diff --git a/web/src/components/AuthenticatedImage.vue b/web/src/components/AuthenticatedImage.vue
index 9e1a963..8b463b0 100644
--- a/web/src/components/AuthenticatedImage.vue
+++ b/web/src/components/AuthenticatedImage.vue
@@ -42,19 +42,27 @@ export default {
url: this.src,
data: this.image_data
});
+ },
+ deferImage() {
+ setTimeout(() => {
+ if (this.cached) {
+ const c = this.getThumbnail(this.src);
+ if (c) {
+ this.image_data = c;
+ return;
+ }
+ }
+ this.loadImage();
+ }, 0);
+ }
+ },
+ watch: {
+ src: function (newVal, oldVal) {
+ this.deferImage()
}
},
mounted() {
- setTimeout(() => {
- if (this.cached) {
- const c = this.getThumbnail(this.src);
- if (c) {
- this.image_data = c;
- return;
- }
- }
- this.loadImage();
- }, 0);
+ this.deferImage();
}
}
\ No newline at end of file
diff --git a/web/src/components/ItemTimeline.vue b/web/src/components/ItemTimeline.vue
deleted file mode 100644
index fcf20ca..0000000
--- a/web/src/components/ItemTimeline.vue
+++ /dev/null
@@ -1,222 +0,0 @@
-
- {{ item }}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/web/src/components/Timeline.vue b/web/src/components/Timeline.vue
index 88bfa94..41e1274 100644
--- a/web/src/components/Timeline.vue
+++ b/web/src/components/Timeline.vue
@@ -21,6 +21,9 @@
+
@@ -30,40 +33,15 @@
{{ item }}