diff --git a/src/components/Asset.vue b/src/components/Asset.vue index 1326cc4b6..b5e538871 100644 --- a/src/components/Asset.vue +++ b/src/components/Asset.vue @@ -21,14 +21,14 @@ - + @@ -149,6 +149,9 @@ export default { collapseToggled(isVisible) { let event = isVisible ? 'openCollapsible' : 'closeCollapsible'; this.$store.commit(event, {type: this.type, uid: this.uid}); + }, + show() { + this.$emit('show', ...arguments); } } }; diff --git a/src/components/Assets.vue b/src/components/Assets.vue index 337829e79..3fd93cab1 100644 --- a/src/components/Assets.vue +++ b/src/components/Assets.vue @@ -71,4 +71,4 @@ export default { } } }; - \ No newline at end of file + diff --git a/src/components/HrefActions.vue b/src/components/HrefActions.vue index c98e61aa6..28373e1e3 100644 --- a/src/components/HrefActions.vue +++ b/src/components/HrefActions.vue @@ -214,7 +214,11 @@ export default { if (this.context instanceof STAC) { baseUrl = this.context.getAbsoluteUrl(); } - return this.getRequestUrl(this.data.href, baseUrl); + try { + return this.getRequestUrl(this.data.href, baseUrl); + } catch (e) { + return this.data.href; + } }, parsedHref() { return URI(this.href); @@ -289,7 +293,6 @@ export default { // Use fetch because stacRequest uses axios // and axios doesn't support responseType: 'stream' const res = await fetch(url, options); - console.log(res); if (res.status >= 400) { let msg; switch(res.status) { diff --git a/src/components/ShowAssetMixin.js b/src/components/ShowAssetMixin.js index 17866fbf4..4bf74c7ee 100644 --- a/src/components/ShowAssetMixin.js +++ b/src/components/ShowAssetMixin.js @@ -68,4 +68,4 @@ export default { } } } -}; \ No newline at end of file +};