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

Side by Side Diff: dashboard/dashboard/elements/pinpoint-job-dialog.html

Issue 3016673002: Dashboard - Add pinpoint-perf-job-dialog for perf try jobs.
Patch Set: . Created 3 years, 2 months 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2017 The Chromium Authors. All rights reserved. 3 Copyright 2017 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css"> 8 <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css">
9 9
10 <link rel="import" href="/components/app-route/app-route.html"> 10 <link rel="import" href="/components/app-route/app-route.html">
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 start_repository: this.start_repository, 136 start_repository: this.start_repository,
137 end_repository: this.end_repository, 137 end_repository: this.end_repository,
138 bug_id: this.bug_id, 138 bug_id: this.bug_id,
139 story_filter: this.story_filter, 139 story_filter: this.story_filter,
140 bisect_mode: this.$.bisect_mode.selected 140 bisect_mode: this.$.bisect_mode.selected
141 }; 141 };
142 142
143 try { 143 try {
144 this.error = ''; 144 this.error = '';
145 this.create_disabled = true; 145 this.create_disabled = true;
146 const results = await simple_xhr.asPromise('/pinpoint/new', params); 146 const results = await simple_xhr.asPromise(
147 '/pinpoint/new/bisect', params);
147 this.fire('pinpoint-new-response', { 148 this.fire('pinpoint-new-response', {
148 'jobId': results.jobId, 149 'jobId': results.jobId,
149 'jobUrl': results.jobUrl, 150 'jobUrl': results.jobUrl,
150 }); 151 });
151 this.close(); 152 this.close();
152 } catch (e) { 153 } catch (e) {
153 this.error = e; 154 this.error = e;
154 } 155 }
155 this.create_disabled = false; 156 this.create_disabled = false;
156 }, 157 },
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 this.$.container.open(); 192 this.$.container.open();
192 }, 193 },
193 194
194 close() { 195 close() {
195 this.$.container.close(); 196 this.$.container.close();
196 } 197 }
197 198
198 }); 199 });
199 </script> 200 </script>
200 </dom-module> 201 </dom-module>
OLDNEW
« no previous file with comments | « dashboard/dashboard/elements/bisect-button.html ('k') | dashboard/dashboard/elements/pinpoint-perf-job-dialog.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698