From d1cb89c5de10ff23c8443473065493d9634b803b Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 25 Jan 2023 19:39:30 +0600 Subject: [PATCH] Fix recruit (#2543) Signed-off-by: Denis Bykhov --- .../ui/src/components/BarDashboard.svelte | 2 +- packages/ui/src/types.ts | 1 + .../src/components/Dashboard.svelte | 1 + .../src/components/StatusTableView.svelte | 29 +++++++------------ .../src/components/SpaceContent.svelte | 5 ++-- 5 files changed, 16 insertions(+), 22 deletions(-) diff --git a/packages/ui/src/components/BarDashboard.svelte b/packages/ui/src/components/BarDashboard.svelte index 5083a82fff..3bae2607f3 100644 --- a/packages/ui/src/components/BarDashboard.svelte +++ b/packages/ui/src/components/BarDashboard.svelte @@ -22,7 +22,7 @@
- {#each items as item (item.label)} + {#each items as item (item._id)}
{item.label}
diff --git a/packages/ui/src/types.ts b/packages/ui/src/types.ts index b1b337c5ff..48141a44e5 100644 --- a/packages/ui/src/types.ts +++ b/packages/ui/src/types.ts @@ -205,6 +205,7 @@ export interface PopupOptions { } export interface DashboardItem { + _id: string label: string values: DashboardGroup[] tooltip?: LabelAndProps diff --git a/plugins/task-resources/src/components/Dashboard.svelte b/plugins/task-resources/src/components/Dashboard.svelte index 74a68d62ac..260f797c4f 100644 --- a/plugins/task-resources/src/components/Dashboard.svelte +++ b/plugins/task-resources/src/components/Dashboard.svelte @@ -105,6 +105,7 @@ return [ p._id, { + _id: p._id, label: p.title, values: [ { color: 10, value: 0 }, diff --git a/plugins/task-resources/src/components/StatusTableView.svelte b/plugins/task-resources/src/components/StatusTableView.svelte index 8744c43af0..7bad5df1db 100644 --- a/plugins/task-resources/src/components/StatusTableView.svelte +++ b/plugins/task-resources/src/components/StatusTableView.svelte @@ -14,16 +14,16 @@ // limitations under the License. -->