From 7dfb59b23061ddb23669d140634881dda3544235 Mon Sep 17 00:00:00 2001 From: Artyom Grigorovich Date: Wed, 13 Apr 2022 00:41:32 +0700 Subject: [PATCH] =?UTF-8?q?Tracker:=20Issue=20List=20=E2=80=93=20Status=20?= =?UTF-8?q?presenter=20(#1383)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Artyom Grigorovich --- .../src/components/CreateIssue.svelte | 10 +++- .../src/components/StatusSelector.svelte | 50 ++++++++++++------- .../issues/CategoryPresenter.svelte | 1 + .../src/components/issues/IssuesList.svelte | 18 ++++++- .../components/issues/StatusPresenter.svelte | 44 ++++++++++++++++ .../components/issues/TitlePresenter.svelte | 20 +------- plugins/tracker-resources/src/index.ts | 3 ++ plugins/tracker-resources/src/plugin.ts | 1 + 8 files changed, 106 insertions(+), 41 deletions(-) create mode 100644 plugins/tracker-resources/src/components/issues/StatusPresenter.svelte diff --git a/plugins/tracker-resources/src/components/CreateIssue.svelte b/plugins/tracker-resources/src/components/CreateIssue.svelte index e3b6bfc781..2538126653 100644 --- a/plugins/tracker-resources/src/components/CreateIssue.svelte +++ b/plugins/tracker-resources/src/components/CreateIssue.svelte @@ -101,6 +101,14 @@ object.priority = newPriority } + + const handleStatusChanged = (newStatus: IssueStatus | undefined) => { + if (newStatus === undefined) { + return + } + + object.status = newStatus + } @@ -135,7 +143,7 @@ />
- + - -