| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |