diff --git a/src/components/viewComponents/galleryComponents/captureCard.vue b/src/components/viewComponents/galleryComponents/captureCard.vue index 16403382..2836ea2d 100644 --- a/src/components/viewComponents/galleryComponents/captureCard.vue +++ b/src/components/viewComponents/galleryComponents/captureCard.vue @@ -4,7 +4,7 @@ :class="{ 'uk-card-secondary': $store.state.globalSettings.darkMode }" >
- +
- {{ captureState.filename }} + {{ fileName }}
@@ -74,7 +74,7 @@ }" > -

{{ captureState.filename }}

+

{{ fileName }}

Path: {{ captureState.path }}

Time: {{ betterTimestring }}

ID: {{ captureState.metadata.id }}

@@ -148,6 +148,11 @@ export default { }, computed: { + fileName: function() { + return this.captureState.filename // If this.captureState.filename exists + ? this.captureState.filename // Use this.captureState.filename + : this.captureState.metadata.filename; // Otherwise use old this.captureState.metadata.filename + }, tagModalID: function() { return this.makeModalName("tag-modal-"); }, @@ -164,13 +169,17 @@ export default { return this.captureURL + "/download?thumbnail=true"; }, imgURL: function() { - return this.captureURL + "/download/" + this.captureState.filename; + return this.captureURL + "/download/" + this.fileName; }, tagURL: function() { return this.captureURL + "/tags"; }, captureURL: function() { - return this.$store.getters.uri + "/camera/capture/" + this.captureState.metadata.id; + return ( + this.$store.getters.uri + + "/camera/capture/" + + this.captureState.metadata.id + ); }, betterTimestring: function() { var dtSplit = this.captureState.metadata.time.split("_"); diff --git a/src/components/viewComponents/galleryDisplay.vue b/src/components/viewComponents/galleryDisplay.vue index cc667b18..71f1177b 100644 --- a/src/components/viewComponents/galleryDisplay.vue +++ b/src/components/viewComponents/galleryDisplay.vue @@ -80,10 +80,7 @@ :metadata="item.metadata" :thumbnail="item.thumbnail" /> - +