+
{/if}
@@ -64,13 +68,21 @@
{/if}
diff --git a/plugins/tracker-resources/src/components/StatusSelector.svelte b/plugins/tracker-resources/src/components/StatusSelector.svelte
index eebf7b42b7..2443fefc0f 100644
--- a/plugins/tracker-resources/src/components/StatusSelector.svelte
+++ b/plugins/tracker-resources/src/components/StatusSelector.svelte
@@ -22,6 +22,7 @@
export let kind: 'button' | 'icon' = 'button'
export let shouldShowLabel: boolean = true
export let onStatusChange: ((newStatus: IssueStatus | undefined) => void) | undefined = undefined
+ export let isEditable: boolean = true
const statusesInfo = [
IssueStatus.Backlog,
@@ -32,6 +33,9 @@
].map((s) => ({ id: s, ...issueStatuses[s] }))
const handleStatusEditorOpened = (event: MouseEvent) => {
+ if (!isEditable) {
+ return
+ }
showPopup(
SelectPopup,
{ value: statusesInfo, placeholder: tracker.string.SetStatus, searchable: true },
@@ -51,12 +55,12 @@
on:click={handleStatusEditorOpened}
/>
{:else if kind === 'icon'}
-
+
{#if shouldShowLabel}
-
+
{/if}
@@ -64,6 +68,12 @@
{/if}
diff --git a/plugins/tracker-resources/src/components/issues/Backlog.svelte b/plugins/tracker-resources/src/components/issues/Backlog.svelte
index 901e9866e3..ff2afa70f4 100644
--- a/plugins/tracker-resources/src/components/issues/Backlog.svelte
+++ b/plugins/tracker-resources/src/components/issues/Backlog.svelte
@@ -7,4 +7,4 @@
export let currentSpace: Ref
-
+
diff --git a/plugins/tracker-resources/src/components/issues/CategoryPresenter.svelte b/plugins/tracker-resources/src/components/issues/CategoryPresenter.svelte
index 9ee63d0dd6..3e190d57d2 100644
--- a/plugins/tracker-resources/src/components/issues/CategoryPresenter.svelte
+++ b/plugins/tracker-resources/src/components/issues/CategoryPresenter.svelte
@@ -1,21 +1,21 @@
0}>
-