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/CollapsableCards.vue b/web/src/components/CollapsableCards.vue
index d1edab7..d38206a 100644
--- a/web/src/components/CollapsableCards.vue
+++ b/web/src/components/CollapsableCards.vue
@@ -52,7 +52,7 @@ export default {
};
},
created() {
- const query = this.$router.currentRoute ? (this.$router.currentRoute.query ? this.$router.currentRoute.query.collapsed : null) : null;
+ const query = this.route ? (this.route.query ? this.route.query.collapsed : null) : null;
if (query !== null && query !== undefined) {
this.collapsed = this.unpackInt(parseInt(query), this.sections.length);
} else {
@@ -84,8 +84,8 @@ export default {
const encoded = this.packInt(this.collapsed).toString()
if (this.route.query.collapsed !== encoded)
this.$router.push({
- ...this.$router.currentRoute,
- query: {...this.$router.currentRoute.query, collapsed: encoded}
+ ...this.route,
+ query: {...this.route.query, collapsed: encoded}
});
},
deep: true,
diff --git a/web/src/components/EditItem.vue b/web/src/components/EditItem.vue
index 9bea6f9..833bfd5 100644
--- a/web/src/components/EditItem.vue
+++ b/web/src/components/EditItem.vue
@@ -12,13 +12,16 @@
field="description"
:validation-fn="str => str && str.length > 0"
/>
-
{{ item }}