Skip to content

Commit

Permalink
fix: adaptations for themes array
Browse files Browse the repository at this point in the history
  • Loading branch information
silvester-pari committed Oct 18, 2023
1 parent 82615e6 commit b6a0437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/src/store/modules/indicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const actions = {
const indicators = [];
data.links.forEach((link) => {
if (link.rel === 'child') {
let themes = link.themes.split(',');
let { themes } = link;
if (themes && rootState.config.baseConfig.themeOverwrite) {
const overwrite = rootState.config.baseConfig.themeOverwrite;
const updated = [];
Expand All @@ -68,7 +68,7 @@ const actions = {
updated.push(t);
}
});
themes = updated.join(',');
themes = updated;
}
let resultIndicator = {
type: 'stac',
Expand Down
13 changes: 2 additions & 11 deletions app/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
subheader='["keywords"]'
properties='["themes", "satellite", "sensor", "agency"]'
featured='["description", "providers", "extent", "sci:publications"]'
footer='["sci:citation", "sci:doi"]'
footer='["sci:citation"]'
>
<div slot="themes">
<ul>
<v-chip
v-for="theme in $refs.stacinfo?.stacProperties?.themes?.value.split(',')"
v-for="theme in $refs.stacinfo?.stacProperties?.themes?.value"
:key="theme"
:color="$store.state.themes.themes.find(t => t.slug === theme)?.color"
text-color="white"
Expand Down Expand Up @@ -460,15 +460,6 @@ export default {
transform: translateX(calc(-1 * var(--data-panel-width)));
}
eox-stacinfo::part(header) {
position: sticky;
top: 0;
z-index: 1;
}
eox-stacinfo::part(footer) {
position: sticky;
bottom: 0;
}
[slot="themes"] {
width: 100%;
}
Expand Down

0 comments on commit b6a0437

Please sign in to comment.