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

Side by Side Diff: appengine/swarming/elements/res/imp/taskpage/task-page.html

Issue 2401763003: Fix background page loading (Closed)
Patch Set: Get rid of popup/signin Created 4 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
« no previous file with comments | « appengine/swarming/elements/res/imp/common/auth-signin.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « appengine/swarming/elements/res/imp/common/auth-signin.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698