diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index 8c9c5d6666b9..b3891850a30f 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -3,7 +3,7 @@ :id="contentId" :class="['content-item m-1 p-0 rounded btn-transparent-background', contentCls]" :data-hid="id" - :data-state="state" + :data-state="dataState" tabindex="0" role="button" @keydown="onKeyDown"> @@ -173,12 +173,13 @@ export default { state() { if (this.isPlaceholder) { return "placeholder"; - } else if ( - this.item.history_content_type === "dataset_collection" && - this.item.populated_state === "failed" - ) { + } + if (this.item.populated_state === "failed") { return "failed_populated_state"; } + if (this.item.populated_state === "new") { + return "new_populated_state"; + } if (this.item.job_state_summary) { for (const state of HIERARCHICAL_COLLECTION_JOB_STATES) { if (this.item.job_state_summary[state] > 0) { @@ -190,6 +191,9 @@ export default { } return "ok"; }, + dataState() { + return this.state === "new_populated_state" ? "new" : this.state; + }, tags() { return this.item.tags; }, diff --git a/client/src/components/History/Content/model/StatesInfo.vue b/client/src/components/History/Content/model/StatesInfo.vue index f559e4d772c7..2cd7ab525f1a 100644 --- a/client/src/components/History/Content/model/StatesInfo.vue +++ b/client/src/components/History/Content/model/StatesInfo.vue @@ -22,6 +22,10 @@ if (props.excludeStates) { } } +function dataState(state: string) { + return state === "new_populated_state" ? "new" : state; +} + function onFilter(value: string) { emit("set-filter", `state`, value); } @@ -37,7 +41,7 @@ function onFilter(value: string) {
{{ key }}
!excludeStates.includes(state));
const validFilters = {