mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 15:15:58 +08:00
hiding tag icon when no tags selected
This commit is contained in:
parent
7245ab64b0
commit
8fee706eee
1 changed files with 5 additions and 1 deletions
|
@ -131,7 +131,11 @@ function updateActiveTags(){
|
|||
tagsString += $(tag).children('.title').text() + ', ';
|
||||
}
|
||||
})
|
||||
$(".pageTest #tagNotice").html(`<i class="fas fa-tag"></i>${tagsString.substring(0, tagsString.length - 2)}`);
|
||||
if(tagsString !== ""){
|
||||
$(".pageTest #tagNotice").html(`<i class="fas fa-tag"></i>${tagsString.substring(0, tagsString.length - 2)}`);
|
||||
}else{
|
||||
$(".pageTest #tagNotice").empty();
|
||||
}
|
||||
}
|
||||
|
||||
//smooth caret
|
||||
|
|
Loading…
Add table
Reference in a new issue