Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1829)

Unified Diff: appengine/swarming/ui/res/imp/botlist/bot-filters.html

Issue 2553563003: Link Swarming Tasklist and Botlist together (Closed)
Patch Set: Rebuild Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/ui/build/js/js.js ('k') | appengine/swarming/ui/res/imp/botpage/bot-page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/ui/res/imp/botlist/bot-filters.html
diff --git a/appengine/swarming/ui/res/imp/botlist/bot-filters.html b/appengine/swarming/ui/res/imp/botlist/bot-filters.html
index 699f7fc18e56647e3cad412964751905fe36e221..93ee6b58cedf5bdf0233629491847041a8e625ee 100644
--- a/appengine/swarming/ui/res/imp/botlist/bot-filters.html
+++ b/appengine/swarming/ui/res/imp/botlist/bot-filters.html
@@ -57,15 +57,15 @@
<link rel="import" href="/res/imp/bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="/res/imp/bower_components/paper-input/paper-input.html">
-<link rel="import" href="/res/imp/common/url-param.html">
<link rel="import" href="/res/imp/common/query-column-filter-behavior.html">
-
+<link rel="import" href="/res/imp/common/swarming-app.html">
+<link rel="import" href="/res/imp/common/url-param.html">
<link rel="import" href="bot-list-shared-behavior.html">
<dom-module id="bot-filters">
<template>
- <style is="custom-style" include="iron-flex iron-flex-alignment iron-positioning query-column-filter-style">
+ <style is="custom-style" include="iron-flex iron-flex-alignment iron-positioning query-column-filter-style swarming-app-style">
</style>
@@ -172,7 +172,7 @@ the fleet.">
</div>
<div class="side-by-side">
- <paper-checkbox checked="{{verbose}}">Verbose Entries</paper-checkbox>
+ <paper-checkbox checked="{{verbose}}">Verbose Entries</paper-checkbox>
<paper-input id="_limit"
label="Limit Results"
auto-validate
@@ -181,6 +181,7 @@ the fleet.">
pattern="[0-9]+"
value="{{_limit}}">
</paper-input>
+ <a href$="[[_matchingTasksLink(query_params)]]">View Matching Tasks</a>
</div>
</div>
@@ -303,6 +304,21 @@ the fleet.">
return params;
},
+ _matchingTasksLink: function(query_params) {
+ var cols = ["name", "state", "created_ts"];
+ if (!query_params.dimensions) {
+ return this._taskListLink([], cols);
+ }
+
+ query_params.dimensions.forEach(function(f) {
+ var col = f.split(this.FILTER_SEP, 1)[0];
+ if (cols.indexOf(col) === -1) {
+ cols.push(col);
+ }
+ }.bind(this));
+ return this._taskListLink(query_params.dimensions, cols);
+ },
+
_showDimensionMessage: function(primarySelected, selectedItems) {
return primarySelected && primarySelected !== "id" && !selectedItems;
}
« no previous file with comments | « appengine/swarming/ui/build/js/js.js ('k') | appengine/swarming/ui/res/imp/botpage/bot-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698