From f5eb9a230ef626c4921cd422fa187bedba33a784 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Fri, 4 Nov 2022 13:15:16 +0000 Subject: [PATCH] table: fix table view post-filter change --- src/components/cylc/table/Table.vue | 105 +++++++++--------- src/views/Table.vue | 16 ++- .../unit/components/cylc/table/table.data.js | 90 +++++++++------ .../components/cylc/table/table.vue.spec.js | 6 +- 4 files changed, 126 insertions(+), 91 deletions(-) diff --git a/src/components/cylc/table/Table.vue b/src/components/cylc/table/Table.vue index 0d729e5457..c8b7102504 100644 --- a/src/components/cylc/table/Table.vue +++ b/src/components/cylc/table/Table.vue @@ -107,7 +107,7 @@ along with this program. If not, see . multi-sort :sort-by.sync="sortBy" :sort-desc.sync="sortDesc" - item-key="id" + item-key="task.id" show-expand dense :footer-props="{ @@ -124,19 +124,19 @@ along with this program. If not, see .
-
{{ item.node.name }}
+
{{ item.task.node.name }}
@@ -144,22 +144,33 @@ along with this program. If not, see . icon class="v-data-table__expand-icon" @click="expanded.push(item)" - v-if="(item.children|| []).length > 0 && !expanded.includes(item)" + v-if=" + (item.task.children|| []).length > 0 && + !expanded.includes(item) + " > {{ icons.mdiChevronDown }} - + {{ icons.mdiChevronDown }} - {{ item.node.cyclePoint }} - {{ getLatestJobNode(item).platform }} - {{ getLatestJobNode(item).jobRunnerName }} - {{ getLatestJobNode(item).jobId }} - {{ getLatestJobNode(item).submittedTime }} - {{ getLatestJobNode(item).startedTime }} - {{ getLatestJobNode(item).finishedTime }} - {{ item.node.meanElapsedTime }} + {{ item.task.node.cyclePoint }} + {{ ((item.latestJob || {}).node || {}).platform }} + {{ ((item.latestJob || {}).node || {}).jobRunnerName }} + {{ ((item.latestJob || {}).node || {}).jobId }} + {{ ((item.latestJob || {}).node || {}).submittedTime }} + {{ ((item.latestJob || {}).node || {}).startedTime }} + {{ ((item.latestJob || {}).node || {}).finishedTime }} + {{ item.task.node.meanElapsedTime }}