Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMandlik, Nikhil K. (ARC-TI)[KBR Wyle Services, LLC] <nikhil.k.mandlik@nasa.gov>2021-05-04 01:48:27 +0300
committerMandlik, Nikhil K. (ARC-TI)[KBR Wyle Services, LLC] <nikhil.k.mandlik@nasa.gov>2021-05-12 00:25:38 +0300
commitd5a9ea1ac35e2fea772f7cd9021379630e3592e0 (patch)
tree3a6ef6fef3f4c0ef1b60b44495eadd7847c7a2bc
parent9d843d8057550822831c7b8e40492ab3dc30e619 (diff)
added override image name in example.imagery plugin sample images.nirvss-1.4.0
-rw-r--r--example/imagery/plugin.js9
-rw-r--r--src/plugins/imagery/components/ImageryViewLayout.vue4
2 files changed, 11 insertions, 2 deletions
diff --git a/example/imagery/plugin.js b/example/imagery/plugin.js
index 3175582ff..ff9526ce4 100644
--- a/example/imagery/plugin.js
+++ b/example/imagery/plugin.js
@@ -50,11 +50,16 @@ define([
const IMAGE_DELAY = 20000;
function pointForTimestamp(timestamp, name) {
+ const url = IMAGE_SAMPLES[Math.floor(timestamp / IMAGE_DELAY) % IMAGE_SAMPLES.length];
+ const urlItems = url.split('/');
+ const imageDownloadName = `example.imagery.${urlItems[urlItems.length - 1]}`;
+
return {
- name: name,
+ name,
utc: Math.floor(timestamp / IMAGE_DELAY) * IMAGE_DELAY,
local: Math.floor(timestamp / IMAGE_DELAY) * IMAGE_DELAY,
- url: IMAGE_SAMPLES[Math.floor(timestamp / IMAGE_DELAY) % IMAGE_SAMPLES.length]
+ url,
+ imageDownloadName
};
}
diff --git a/src/plugins/imagery/components/ImageryViewLayout.vue b/src/plugins/imagery/components/ImageryViewLayout.vue
index 52f010a2e..0d1063faf 100644
--- a/src/plugins/imagery/components/ImageryViewLayout.vue
+++ b/src/plugins/imagery/components/ImageryViewLayout.vue
@@ -91,6 +91,10 @@
:download="datum.imageDownloadName"
@click.prevent
>
+ <img class="c-thumb__image"
+ :src="datum.url"
+ >
+ </a>
<div class="c-thumb__timestamp">{{ formatTime(datum) }}</div>
</div>
</div>