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

Unified Diff: appengine/swarming/elements/res/imp/tasklist/task-list-demo.html

Issue 2279903002: Make the new index page more useful (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@whoami3
Patch Set: Fix names Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
diff --git a/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html b/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
index cea4bcfdf458aecf98c2a98c55339d05f9418abe..fcfe2eb5625fbe3e606d3f76cc7b0c7f5f3baf57 100644
--- a/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
+++ b/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
@@ -62,6 +62,12 @@
server.respondWith("POST", /^\/_ah\/api\/swarming\/v1\/task\/.+\/cancel/, cancel);
server.respondWith("POST", /^\/api\/swarming\/v1\/task\/.+\/cancel/, cancel);
+
+ var permissions = {
+ cancel_task: true
+ };
+ server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
+ server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
</script>
<link rel="import" href="task-list.html">
« no previous file with comments | « appengine/swarming/elements/res/imp/tasklist/task-list.html ('k') | appengine/swarming/templates/public_swarming_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698