diff --git a/src/views/projects/Cob/AssigneeInput.svelte b/src/views/projects/Cob/AssigneeInput.svelte index ce9a45eba..787451b70 100644 --- a/src/views/projects/Cob/AssigneeInput.svelte +++ b/src/views/projects/Cob/AssigneeInput.svelte @@ -48,7 +48,7 @@ if (valid && assignee) { updatedAssignees = [...updatedAssignees, assignee]; inputValue = ""; - if (mode !== "readOnly") { + if (hideEditIcon) { dispatch("save", updatedAssignees); } } @@ -56,7 +56,7 @@ function removeAssignee(assignee: string) { updatedAssignees = updatedAssignees.filter(x => x !== assignee); - if (mode !== "readOnly") { + if (hideEditIcon) { dispatch("save", updatedAssignees); } } diff --git a/src/views/projects/Cob/LabelInput.svelte b/src/views/projects/Cob/LabelInput.svelte index 9ea7344a4..444db5eeb 100644 --- a/src/views/projects/Cob/LabelInput.svelte +++ b/src/views/projects/Cob/LabelInput.svelte @@ -42,7 +42,7 @@ if (valid && sanitizedValue) { updatedLabels = [...updatedLabels, sanitizedValue]; inputValue = ""; - if (mode === "readWrite") { + if (hideEditIcon) { dispatch("save", updatedLabels); } } @@ -50,7 +50,7 @@ function removeLabel(label: string) { updatedLabels = updatedLabels.filter(x => x !== label); - if (mode === "readWrite") { + if (hideEditIcon) { dispatch("save", updatedLabels); } }