| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 | 653 |
| 654 _requestUpdated: function(request) { | 654 _requestUpdated: function(request) { |
| 655 if (this._noMilo(request)) { | 655 if (this._noMilo(request)) { |
| 656 this.set("_show_raw", 1); | 656 this.set("_show_raw", 1); |
| 657 } | 657 } |
| 658 }, | 658 }, |
| 659 | 659 |
| 660 _softRefresh: function() { | 660 _softRefresh: function() { |
| 661 if (this._result && this._result.state !== "RUNNING" && | 661 if (this._result && this._result.state !== "RUNNING" && |
| 662 this._result.state !== "PENDING") { | 662 this._result.state !== "PENDING") { |
| 663 console.log("Don't reload because not running"); | |
| 664 return; | 663 return; |
| 665 } | 664 } |
| 666 this.$.data.reload(); | 665 this.$.data.reload(); |
| 667 var miloFrame = this.$$("iframe") | 666 var miloFrame = this.$$("iframe") |
| 668 if (miloFrame) { | 667 if (miloFrame) { |
| 669 miloFrame.src = this._getMiloLink(this.milo_prefix,this.task_id); | 668 miloFrame.src = this._getMiloLink(this.milo_prefix,this.task_id); |
| 670 } | 669 } |
| 671 }, | 670 }, |
| 672 | 671 |
| 673 _retryTask: function() { | 672 _retryTask: function() { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 741 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 743 }, | 742 }, |
| 744 | 743 |
| 745 _wasNotPickedUp: function(result) { | 744 _wasNotPickedUp: function(result) { |
| 746 return result && !this._wasPickedUp(result); | 745 return result && !this._wasPickedUp(result); |
| 747 }, | 746 }, |
| 748 }); | 747 }); |
| 749 })(); | 748 })(); |
| 750 </script> | 749 </script> |
| 751 </dom-module> | 750 </dom-module> |
| OLD | NEW |