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

Side by Side Diff: appengine/swarming/elements/res/imp/tasklist/task-list.html

Issue 2366663003: Use non-proxied links (Closed) Base URL: git@github.com:luci/luci-py@manual-add
Patch Set: 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
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-list> 9 <task-list>
10 10
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 return retVal; 323 return retVal;
324 }, 324 },
325 325
326 _cannotCancel: function(task, permissions) { 326 _cannotCancel: function(task, permissions) {
327 return !(permissions && permissions.cancel_task && 327 return !(permissions && permissions.cancel_task &&
328 this._column("state", task) === "PENDING"); 328 this._column("state", task) === "PENDING");
329 }, 329 },
330 330
331 _cancelTask: function() { 331 _cancelTask: function() {
332 var url = "/_ah/api/swarming/v1/task/" + this._toCancel +"/cancel"; 332 var url = "/api/swarming/v1/task/" + this._toCancel +"/cancel";
333 swarming.postWithToast(url, "Canceling task " + this._toCancel, this._au th_headers); 333 swarming.postWithToast(url, "Canceling task " + this._toCancel, this._au th_headers);
334 this.set("_toCancel", ""); 334 this.set("_toCancel", "");
335 }, 335 },
336 336
337 _promptClosed: function(e) { 337 _promptClosed: function(e) {
338 if (e.detail.confirmed) { 338 if (e.detail.confirmed) {
339 this._cancelTask(); 339 this._cancelTask();
340 } 340 }
341 }, 341 },
342 342
(...skipping 15 matching lines...) Expand all
358 return task.tagMap[col]; 358 return task.tagMap[col];
359 }, 359 },
360 360
361 _taskClass: function(task) { 361 _taskClass: function(task) {
362 return this.stateClass(this._column("state", task)); 362 return this.stateClass(this._column("state", task));
363 } 363 }
364 }); 364 });
365 })(); 365 })();
366 </script> 366 </script>
367 </dom-module> 367 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698