Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Reduce requests on label and assignee changes
Sebastian Martinez committed 2 years ago
commit 8d676985751508dfc9dc67e3cf06c522cd3c14d1
parent 8e8c6981d9c3165a64211534678c236d6fc4045b
2 files changed +4 -4
modified 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);
    }
  }
modified 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);
    }
  }