Skip to content

Commit

Permalink
Enable metadata rendering for providers again
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 4, 2023
1 parent e855873 commit 4398e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/components/Metadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</template>

<script>
import { formatAsset, formatCollection, formatItemProperties, formatLink, formatSummaries } from '@radiantearth/stac-fields';
import { formatAsset, formatCollection, formatGrouped, formatItemProperties, formatLink, formatProvider, formatSummaries } from '@radiantearth/stac-fields';
import MetadataGroup from './metadata/MetadataGroup.vue';
export default {
Expand Down Expand Up @@ -48,6 +48,8 @@ export default {
return formatAsset(this.data, this.context, filter);
case 'Link':
return formatLink(this.data, this.context, filter);
case 'Provider':
return formatProvider(this.data, this.context, filter);
case 'Item':
return formatItemProperties(this.data, filter);
case 'Collection':
Expand All @@ -67,7 +69,7 @@ export default {
return core.sort((a,b) => a.label.localeCompare(b.label));
}
default:
return [];
return formatGrouped(this.context, this.data, this.type, filter);
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions src/components/Provider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ export default {
.card-body {
padding: 0;
}
&:only-child:empty {
display: inline !important;
&:before {
content: 'No additional information available.';
}
}
}
}
}
Expand Down

0 comments on commit 4398e36

Please sign in to comment.