Updated adminpanel to be able to pin a list with fewer elements generally also

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-04 22:40:19 +02:00
parent ee3f178333
commit 1c5b2ad3df
2 changed files with 3 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ function loaded() {
var output_pinned = '<option value="" disabled selected>Channels</option>';
var output_delete = '<option value="" disabled selected>Channels</option>';
for(var x = 0; x < response.length; x++){
if(response[x].count > 5){
if(response[x].count > 2){
output_pinned += "<option class='" + response[x]._id + "' value='" + response[x]._id + "'>" + response[x]._id + "</option>";
}
output_delete += "<option class='" + response[x]._id + "' value='" + response[x]._id + "'>" + response[x]._id + "</option>";