| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 This in an HTML Import-able file that contains the definition | 6 This in an HTML Import-able file that contains the definition |
| 7 of the following elements: | 7 of the following elements: |
| 8 | 8 |
| 9 <task-page> | 9 <task-page> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 <link rel="import" href="/res/imp/bower_components/iron-icon/iron-icon.html"> | 27 <link rel="import" href="/res/imp/bower_components/iron-icon/iron-icon.html"> |
| 28 <link rel="import" href="/res/imp/bower_components/iron-icons/iron-icons.html"> | 28 <link rel="import" href="/res/imp/bower_components/iron-icons/iron-icons.html"> |
| 29 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm
l"> | 29 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm
l"> |
| 30 <link rel="import" href="/res/imp/bower_components/paper-dialog/paper-dialog.htm
l"> | 30 <link rel="import" href="/res/imp/bower_components/paper-dialog/paper-dialog.htm
l"> |
| 31 <link rel="import" href="/res/imp/bower_components/paper-input/paper-input.html"
> | 31 <link rel="import" href="/res/imp/bower_components/paper-input/paper-input.html"
> |
| 32 <link rel="import" href="/res/imp/bower_components/paper-tabs/paper-tabs.html"> | 32 <link rel="import" href="/res/imp/bower_components/paper-tabs/paper-tabs.html"> |
| 33 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> | 33 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> |
| 34 | 34 |
| 35 <link rel="import" href="/res/imp/common/common-behavior.html"> | 35 <link rel="import" href="/res/imp/common/common-behavior.html"> |
| 36 <link rel="import" href="/res/imp/common/error-toast.html"> | |
| 37 <link rel="import" href="/res/imp/common/interval-timer.html"> | 36 <link rel="import" href="/res/imp/common/interval-timer.html"> |
| 38 <link rel="import" href="/res/imp/common/single-page-style.html"> | 37 <link rel="import" href="/res/imp/common/single-page-style.html"> |
| 39 <link rel="import" href="/res/imp/common/swarming-app.html"> | 38 <link rel="import" href="/res/imp/common/swarming-app.html"> |
| 40 <link rel="import" href="/res/imp/common/task-behavior.html"> | 39 <link rel="import" href="/res/imp/common/task-behavior.html"> |
| 41 <link rel="import" href="/res/imp/common/url-param.html"> | 40 <link rel="import" href="/res/imp/common/url-param.html"> |
| 42 | 41 |
| 43 <link rel="import" href="task-page-data.html"> | 42 <link rel="import" href="task-page-data.html"> |
| 44 <link rel="import" href="task-disambiguation.html"> | 43 <link rel="import" href="task-disambiguation.html"> |
| 45 | 44 |
| 46 <dom-module id="task-page"> | 45 <dom-module id="task-page"> |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 | 507 |
| 509 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed"> | 508 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed"> |
| 510 <h2>Are you sure?</h2> | 509 <h2>Are you sure?</h2> |
| 511 <div>Are you sure you want to [[_dialog_prompt]]?</div> | 510 <div>Are you sure you want to [[_dialog_prompt]]?</div> |
| 512 <div class="buttons"> | 511 <div class="buttons"> |
| 513 <paper-button dialog-dismiss autofocus>No</paper-button> | 512 <paper-button dialog-dismiss autofocus>No</paper-button> |
| 514 <paper-button dialog-confirm>Yes</paper-button> | 513 <paper-button dialog-confirm>Yes</paper-button> |
| 515 </div> | 514 </div> |
| 516 </paper-dialog> | 515 </paper-dialog> |
| 517 | 516 |
| 518 <error-toast></error-toast> | |
| 519 | |
| 520 <interval-timer period="[[_refresh_interval]]" on-trigger="_softRefresh"> | 517 <interval-timer period="[[_refresh_interval]]" on-trigger="_softRefresh"> |
| 521 </interval-timer> | 518 </interval-timer> |
| 522 | 519 |
| 523 </template> | 520 </template> |
| 524 <script> | 521 <script> |
| 525 (function(){ | 522 (function(){ |
| 526 Polymer({ | 523 Polymer({ |
| 527 is: 'task-page', | 524 is: 'task-page', |
| 528 | 525 |
| 529 behaviors: [ | 526 behaviors: [ |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 808 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 812 }, | 809 }, |
| 813 | 810 |
| 814 _wasNotPickedUp: function(result) { | 811 _wasNotPickedUp: function(result) { |
| 815 return result && !this._wasPickedUp(result); | 812 return result && !this._wasPickedUp(result); |
| 816 }, | 813 }, |
| 817 }); | 814 }); |
| 818 })(); | 815 })(); |
| 819 </script> | 816 </script> |
| 820 </dom-module> | 817 </dom-module> |
| OLD | NEW |