]> git.scottworley.com Git - vopamoi/commitdiff
Fix: Escape aborts tagging
authorScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:26:23 +0000 (12:26 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:26:23 +0000 (12:26 -0800)
vopamoi.ts

index 6e511a5e67c6172cdb273bc78d8e2c3b1bce04d2..d0f4fa157b3645d32e1626b2cf582e208f8b2e22 100644 (file)
@@ -284,7 +284,7 @@ function BrowserUI() {
       input.removeEventListener("blur", this.completeTagEdit);
       task.removeChild(input);
       task.focus();
       input.removeEventListener("blur", this.completeTagEdit);
       task.removeChild(input);
       task.focus();
-      if (newTagName && !Model.hasTag(task, newTagName)) {
+      if (resolution === CommitOrAbort.Commit && newTagName && !Model.hasTag(task, newTagName)) {
         ui.addTag(task.getAttribute("data-created")!, newTagName);
         lastTagNameEntered = newTagName;
       }
         ui.addTag(task.getAttribute("data-created")!, newTagName);
         lastTagNameEntered = newTagName;
       }