diff --git a/plugins/task-resources/src/components/projectTypes/ProjectEditor.svelte b/plugins/task-resources/src/components/projectTypes/ProjectEditor.svelte index f7b56e4f1e..4f74d4b1a2 100644 --- a/plugins/task-resources/src/components/projectTypes/ProjectEditor.svelte +++ b/plugins/task-resources/src/components/projectTypes/ProjectEditor.svelte @@ -108,11 +108,6 @@ } ) - $: statusCounter = tasks.reduce( - (map, task) => map.set(task.status, (map.get(task.status) ?? 0) + 1), - new Map, number>() - ) - // $: spaceCounter = tasks.reduce( // (map, task) => map.set(task.space, (map.get(task.space) ?? 0) + 1), // new Map, number>() @@ -295,7 +290,7 @@ {:else} - + {/if} diff --git a/plugins/task-resources/src/components/state/StatesProjectEditor.svelte b/plugins/task-resources/src/components/state/StatesProjectEditor.svelte index 6ee2f22647..ce6642717f 100644 --- a/plugins/task-resources/src/components/state/StatesProjectEditor.svelte +++ b/plugins/task-resources/src/components/state/StatesProjectEditor.svelte @@ -39,7 +39,6 @@ export let taskType: TaskType export let type: ProjectType export let states: Status[] = [] - export let statusCounter = new Map, number>() const dispatch = createEventDispatcher() const client = getClient() @@ -205,7 +204,6 @@
{#each states as state, i} {@const color = getColor(type, state, categoriesMap)} - {@const counter = statusCounter.get(state._id)}
-
- -
{ - if (state.category !== undefined) { - selectIcon(elements[i + prevIndex], state) - } else { - onColor(state, color, elements[i + prevIndex]) - } - }} - > - -
-
- - - {#if counter !== undefined} - - {counter} - {/if} +
+
+ +
{ + if (state.category !== undefined) { + selectIcon(elements[i + prevIndex], state) + } else { + onColor(state, color, elements[i + prevIndex]) + } + }} + > + +
diff --git a/plugins/task-resources/src/components/taskTypes/TaskTypeEditor.svelte b/plugins/task-resources/src/components/taskTypes/TaskTypeEditor.svelte index ed01725af5..dc952db8d8 100644 --- a/plugins/task-resources/src/components/taskTypes/TaskTypeEditor.svelte +++ b/plugins/task-resources/src/components/taskTypes/TaskTypeEditor.svelte @@ -32,7 +32,6 @@ export let taskType: TaskType export let taskTypeCounter: Map, number> - export let statusCounter: Map, number> export let taskTypes: TaskType[] @@ -113,7 +112,6 @@ {taskType} type={projectType} {states} - {statusCounter} on:delete={async (evt) => { const index = taskType.statuses.findIndex((p) => p === evt.detail.state._id) taskType.statuses.splice(index, 1)