Title: [249227] trunk/Tools
Revision
249227
Author
[email protected]
Date
2019-08-28 17:44:28 -0700 (Wed, 28 Aug 2019)

Log Message

results.webkit.org: Do not display branch selector if only one branches available
https://bugs.webkit.org/show_bug.cgi?id=201244

Rubber-stamped by Aakash Jain.

* resultsdbpy/resultsdbpy/view/static/js/drawer.js: Hide the branch selector's
container if there aren't multiple branches to choose from.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (249226 => 249227)


--- trunk/Tools/ChangeLog	2019-08-29 00:01:03 UTC (rev 249226)
+++ trunk/Tools/ChangeLog	2019-08-29 00:44:28 UTC (rev 249227)
@@ -1,3 +1,13 @@
+2019-08-28  Jonathan Bedard  <[email protected]>
+
+        results.webkit.org: Do not display branch selector if only one branches available
+        https://bugs.webkit.org/show_bug.cgi?id=201244
+
+        Rubber-stamped by Aakash Jain.
+
+        * resultsdbpy/resultsdbpy/view/static/js/drawer.js: Hide the branch selector's
+        container if there aren't multiple branches to choose from.
+
 2019-08-28  Wenson Hsieh  <[email protected]>
 
         WKAttachmentTests.DropFolderAsAttachmentAndMoveByDragging fails in some iOS simulator configurations

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js (249226 => 249227)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js	2019-08-29 00:01:03 UTC (rev 249226)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js	2019-08-29 00:44:28 UTC (rev 249227)
@@ -134,6 +134,7 @@
                     return `<option selected value="${branch}">${branch}</option>`;
                 return `<option value="${branch}">${branch}</option>`;
             }).join('');
+            element.parentElement.parentElement.parentElement.style.display = state.length > 1 ? null : 'none';
         },
     });
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to