From e1af333fc61a79c12c1003d3003dfdb4d94ac241 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 16 Oct 2023 18:20:23 +0700 Subject: [PATCH] UBER-1073 (#3842) Signed-off-by: Andrey Sobolev --- packages/panel/src/components/Panel.svelte | 2 +- packages/ui/src/components/Component.svelte | 24 +++++--- packages/ui/src/components/Scroller.svelte | 2 +- .../components/issues/IssuePresenter.svelte | 17 ++---- .../src/components/issues/IssuePreview.svelte | 6 +- .../src/components/issues/KanbanView.svelte | 7 +-- .../issues/NotificationIssuePresenter.svelte | 6 +- .../src/components/issues/ParentIssue.svelte | 11 ++-- .../src/components/issues/StatusEditor.svelte | 10 ++-- .../components/issues/edit/EditIssue.svelte | 7 +-- .../issues/edit/QueryIssuesList.svelte | 17 +----- .../issues/edit/SubIssueList.svelte | 8 +-- .../components/issues/edit/SubIssues.svelte | 5 +- .../issues/related/RelatedIssues.svelte | 59 ++++--------------- .../issues/timereport/EstimationPopup.svelte | 8 +-- .../timereport/EstimationSubIssueList.svelte | 11 ++-- .../timereport/ReportedTimeEditor.svelte | 13 ++-- .../timereport/SubIssuesEstimations.svelte | 7 +-- .../issues/timereport/TimeSpendReports.svelte | 9 ++- .../timereport/TimeSpendReportsList.svelte | 6 +- .../components/workflow/RemoveStatus.svelte | 8 +-- plugins/tracker-resources/src/utils.ts | 9 ++- .../src/components/ViewOptionsButton.svelte | 4 +- .../src/components/list/ListCategories.svelte | 2 +- 24 files changed, 93 insertions(+), 165 deletions(-) diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index 977a6330e9..5efd5b49ce 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -52,7 +52,7 @@ export let isFullSize = false export let embedded = false export let contentClasses: string | undefined = undefined - export let content: HTMLElement | undefined = undefined + export let content: HTMLElement | undefined | null = undefined let lastHref: string let timer: any diff --git a/packages/ui/src/components/Component.svelte b/packages/ui/src/components/Component.svelte index 12a9e2d7b4..b90432d201 100644 --- a/packages/ui/src/components/Component.svelte +++ b/packages/ui/src/components/Component.svelte @@ -13,13 +13,13 @@ // limitations under the License. --> -{#if is} +{#if _is} {#await component} {#if showLoading} @@ -43,7 +53,7 @@ {#if $$slots.default !== undefined} diff --git a/plugins/tracker-resources/src/components/issues/ParentIssue.svelte b/plugins/tracker-resources/src/components/issues/ParentIssue.svelte index 4d9ea6068b..93b5ae1905 100644 --- a/plugins/tracker-resources/src/components/issues/ParentIssue.svelte +++ b/plugins/tracker-resources/src/components/issues/ParentIssue.svelte @@ -13,22 +13,21 @@ // limitations under the License. --> diff --git a/plugins/tracker-resources/src/components/issues/StatusEditor.svelte b/plugins/tracker-resources/src/components/issues/StatusEditor.svelte index 2c7946c1d3..9579eab1d1 100644 --- a/plugins/tracker-resources/src/components/issues/StatusEditor.svelte +++ b/plugins/tracker-resources/src/components/issues/StatusEditor.svelte @@ -14,13 +14,13 @@ --> {#if viewlet !== undefined} - {#if projects} - - {:else} -
-
- -
-
-
- -
dispatch('add-issue')}> -
-
- {/if} -{:else} -
- -
+ + {/if} diff --git a/plugins/tracker-resources/src/components/issues/timereport/EstimationPopup.svelte b/plugins/tracker-resources/src/components/issues/timereport/EstimationPopup.svelte index f11eaf5436..6e4a3dcf9d 100644 --- a/plugins/tracker-resources/src/components/issues/timereport/EstimationPopup.svelte +++ b/plugins/tracker-resources/src/components/issues/timereport/EstimationPopup.svelte @@ -112,15 +112,11 @@ {#if currentProject} - + {/if} {#if currentProject} - + {/if}