src.app.modules.dataset.components.dataset-list.dataset-list.component.html Maven / Gradle / Ivy
The newest version!
Show usage of dataset in scenario, campaign and scenario in campaign
Name
Tags
Description
Usage
LastUpdated
@for (dataset of (datasets | dataSetSearch : selectedTags | searchTextPipe : dataSetFilter : ['name', 'description']); track dataset.id) {
{{dataset.name}}
@if (dataset.tags.length <= 3) {
@for (tag of dataset.tags; track $index) {
{{tag}}
}
}
@if (dataset.tags.length > 3) {
@for (tag of dataset.tags | slice:0:2; track $index) {
{{tag}}
}
}
{{dataset.description}}
@for (scenarioUsage of dataset.scenarioUsage; track $index) {
Scenario {{scenarioUsage}}
}
@if (dataset.scenarioUsage.length > 0) {
{{ dataset.scenarioUsage.length }}
}
@for (campaignUsage of dataset.campaignUsage; track campaignUsage) {
Campaign {{campaignUsage}}
}
@if (dataset.campaignUsage.length > 0) {
{{ dataset.campaignUsage.length }}
}
@for (scenarioInCampaignUsage of Object.keys(dataset.scenarioInCampaignUsage); track scenarioInCampaignUsage) {
Campaign {{scenarioInCampaignUsage}} :
@for (scenario of dataset.scenarioInCampaignUsage[scenarioInCampaignUsage]; track $index) {
Scenario {{scenario}}
}
}
@if (Object.keys(dataset.scenarioInCampaignUsage).length > 0) {
{{ Object.values(dataset.scenarioInCampaignUsage).flat().length }}
}
{{dataset.lastUpdated | amDateFormat: 'YYYY-MM-DD HH:mm'}}
}
@if (preview) {
{{preview.name}}
@for (uniqueValue of preview.uniqueValues; track $index) {
{{uniqueValue.key}}: {{uniqueValue.value}}
}
@for (header of preview.getMultipleValueHeader(); track $index) {
{{ header }}
}
@for (multipleValue of preview.multipleValues; track $index) {
@for (value of multipleValue; track $index) {
{{ value.value }}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy