clay-server 2.29.6-beta.1 → 2.30.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -498,6 +498,16 @@ function showIconCtxMenu(anchorEl, slug, name) {
|
|
|
498
498
|
|
|
499
499
|
var isWorktree = slug.indexOf("--") !== -1;
|
|
500
500
|
|
|
501
|
+
var iconItem = document.createElement("button");
|
|
502
|
+
iconItem.className = "project-ctx-item";
|
|
503
|
+
iconItem.innerHTML = iconHtml("smile") + " <span>Set Icon</span>";
|
|
504
|
+
iconItem.addEventListener("click", function (e) {
|
|
505
|
+
e.stopPropagation();
|
|
506
|
+
closeProjectCtxMenu();
|
|
507
|
+
showEmojiPicker(slug, anchorEl);
|
|
508
|
+
});
|
|
509
|
+
menu.appendChild(iconItem);
|
|
510
|
+
|
|
501
511
|
if (isWorktree) {
|
|
502
512
|
var removeWtItem = document.createElement("button");
|
|
503
513
|
removeWtItem.className = "project-ctx-item project-ctx-delete";
|
|
@@ -511,16 +521,6 @@ function showIconCtxMenu(anchorEl, slug, name) {
|
|
|
511
521
|
});
|
|
512
522
|
menu.appendChild(removeWtItem);
|
|
513
523
|
} else {
|
|
514
|
-
var iconItem = document.createElement("button");
|
|
515
|
-
iconItem.className = "project-ctx-item";
|
|
516
|
-
iconItem.innerHTML = iconHtml("smile") + " <span>Set Icon</span>";
|
|
517
|
-
iconItem.addEventListener("click", function (e) {
|
|
518
|
-
e.stopPropagation();
|
|
519
|
-
closeProjectCtxMenu();
|
|
520
|
-
showEmojiPicker(slug, anchorEl);
|
|
521
|
-
});
|
|
522
|
-
menu.appendChild(iconItem);
|
|
523
|
-
|
|
524
524
|
var wtItem = document.createElement("button");
|
|
525
525
|
wtItem.className = "project-ctx-item";
|
|
526
526
|
wtItem.innerHTML = iconHtml("git-branch") + " <span>Add Worktree</span>";
|