You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/15 23:09:48 UTC

[incubator-ponymail-foal] branch master updated: Skip drop down if only one more list

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 4579f22  Skip drop down if only one more list
4579f22 is described below

commit 4579f228f8634b7a734a22c148c77532d45b6a85
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Sep 15 18:09:43 2021 -0500

    Skip drop down if only one more list
    
    This fixes #54
---
 webui/js/source/listview-header.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/webui/js/source/listview-header.js b/webui/js/source/listview-header.js
index c80761e..6abe423 100644
--- a/webui/js/source/listview-header.js
+++ b/webui/js/source/listview-header.js
@@ -150,6 +150,7 @@ function listview_list_lists(state, json) {
                 alists.unshift(current_list);
             }
             let maxlists = (searching && 3 || 4);
+            if (alists.length == maxlists + 1) maxlists++; // skip drop-down if only one additional list (#54)
             for (var i = 0; i < alists.length; i++) {
                 if (i >= maxlists) break;
                 let listname = alists[i];