Skip to content

Commit a03a1e8

Browse files
committed
Remove 'None yet' message when adding first label to issue.
1 parent aad91d4 commit a03a1e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

public/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,11 +926,17 @@ function initIssue() {
926926
$(item).addClass("no-checked");
927927

928928
$("#label-" + id, $labels).remove();
929+
930+
if ($labels.children(".label-item").length == 0) {
931+
$labels.append("<p>None yet</p>");
932+
}
929933
} else {
930934
$(item).prepend('<span class="check pull-left"><i class="fa fa-check"></i></span>');
931935

932936
$(item).removeClass("no-checked");
933937
$(item).addClass("checked");
938+
939+
$("p:not([class])", $labels).remove();
934940

935941
var $l = $("<p></p>");
936942
var c = $("span.color", item).css("background-color");

0 commit comments

Comments
 (0)