diff --git a/api/web/src/components/CloudTAK/CoTView.vue b/api/web/src/components/CloudTAK/CoTView.vue index f82bd5b6e..c62575a4d 100644 --- a/api/web/src/components/CloudTAK/CoTView.vue +++ b/api/web/src/components/CloudTAK/CoTView.vue @@ -228,7 +228,7 @@ -
+
@@ -261,14 +261,13 @@
- -
+
diff --git a/api/web/src/components/CloudTAK/Menu.vue b/api/web/src/components/CloudTAK/Menu.vue index fe229dd80..b683205d7 100644 --- a/api/web/src/components/CloudTAK/Menu.vue +++ b/api/web/src/components/CloudTAK/Menu.vue @@ -29,7 +29,7 @@ -
+
+
+ + + +
@@ -80,7 +85,6 @@ import Upload from '../../util/Upload.vue'; import { IconFile, IconFileUpload, - IconPhoto, IconDownload } from '@tabler/icons-vue'; @@ -93,7 +97,6 @@ export default { name: 'COTAttachments', components: { Upload, - IconPhoto, IconFile, IconDownload, IconFileUpload, @@ -151,10 +154,13 @@ export default { uploadURL: function() { return stdurl(`/api/attachment`); }, - downloadAsset: async function(file) { + downloadAssetUrl: function(file) { const url = stdurl(`/api/attachment/${file.hash}`); url.searchParams.append('token', localStorage.token); - window.open(url, "_blank") + return url; + }, + downloadAsset: async function(file) { + window.open(this.downloadAssetUrl(file), "_blank") }, fetchMetadata: async function() { const url = stdurl(`/api/attachment`); diff --git a/api/web/src/components/CloudTAK/util/Contact.vue b/api/web/src/components/CloudTAK/util/Contact.vue index 90292ef96..efc68efa1 100644 --- a/api/web/src/components/CloudTAK/util/Contact.vue +++ b/api/web/src/components/CloudTAK/util/Contact.vue @@ -30,7 +30,7 @@ }' >
- - - - - -