@abi-software/map-side-bar 1.3.21 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/map-side-bar.common.js +57 -57
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.css +1 -1
- package/dist/map-side-bar.umd.js +57 -57
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ContextCard.vue +2 -2
- package/src/components/ImageGallery.vue +2 -2
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</span>
|
|
36
36
|
<div v-bind:key="i+'_4'" v-if="sampleDetails[i]" v-html="sample.description"/>
|
|
37
|
-
<a v-bind:key="i+'_5'" v-if="sampleDetails[i]" :href="generateFileLink(sample
|
|
37
|
+
<a v-bind:key="i+'_5'" v-if="sampleDetails[i] && sample.path" :href="generateFileLink(sample)" target="_blank">View Source</a>
|
|
38
38
|
<div v-bind:key="i+'_2'" class="padding"/>
|
|
39
39
|
</template>
|
|
40
40
|
</template>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<div class="view-description">{{view.description}}<i class="el-icon-warning-outline info"></i> </div>
|
|
49
49
|
</span>
|
|
50
50
|
<div v-if="sampleDetails[i]" v-html="samplesMatching(view.id).description" :key="i+'_2'"/>
|
|
51
|
-
<a v-bind:key="i+'_5'" v-if="sampleDetails[i]" :href="generateFileLink(samplesMatching(view.id))" target="_blank">View Source</a>
|
|
51
|
+
<a v-bind:key="i+'_5'" v-if="sampleDetails[i] && samplesMatching(view.id).path" :href="generateFileLink(samplesMatching(view.id))" target="_blank">View Source</a>
|
|
52
52
|
<div :key="i" class="padding"/>
|
|
53
53
|
|
|
54
54
|
<!-- Extra padding if sample details is open -->
|
|
@@ -215,7 +215,6 @@ export default {
|
|
|
215
215
|
},
|
|
216
216
|
createScaffoldItems: function () {
|
|
217
217
|
if (this.entry.scaffolds) {
|
|
218
|
-
window.entry = this.entry
|
|
219
218
|
let index = 0;
|
|
220
219
|
this.entry.scaffolds.forEach((scaffold, i) => {
|
|
221
220
|
const filePath = scaffold.dataset.path;
|
|
@@ -237,7 +236,8 @@ export default {
|
|
|
237
236
|
});
|
|
238
237
|
mimetype = thumbnail.mimetype.name;
|
|
239
238
|
}
|
|
240
|
-
|
|
239
|
+
// The line below checks if there is a context file for each scaffold. If there is not, we use the first context card for each scaffold.
|
|
240
|
+
let contextIndex = this.entry.contextualInformation.length == this.entry.scaffolds.length ? i : 0
|
|
241
241
|
let action = {
|
|
242
242
|
label: capitalise(this.label),
|
|
243
243
|
resource: `${this.envVars.API_LOCATION}s3-resource/${this.datasetId}/${this.datasetVersion}/files/${filePath}`,
|