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

Unified Diff: appengine/config_service/ui/src/config-ui/config-set.html

Issue 2962703003: config_service: Add authentication to the UI. (Closed)
Patch Set: Added TODO to handlers.py and confirmed versions in bower.json Created 3 years, 6 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/config_service/ui/src/config-ui/config-set.html
diff --git a/appengine/config_service/ui/src/config-ui/config-set.html b/appengine/config_service/ui/src/config-ui/config-set.html
index d89fdb05457923fa7177877f0dd997ad810b91b2..917048e5d7a0380b0111429f48ca844349123f06 100644
--- a/appengine/config_service/ui/src/config-ui/config-set.html
+++ b/appengine/config_service/ui/src/config-ui/config-set.html
@@ -37,9 +37,10 @@
<iron-ajax
auto
id="requestConfigs"
- url="/_ah/api/config/v1/config-sets?config_set=[[category]]%2F[[name]]&include_files=true"
+ url="/_ah/api/config/v1/config-sets?config_set=[[category]]/[[name]][[route.path]]&include_files=true"
handle-as="json"
- on-response="_onGotConfigFiles">
+ on-response="_onGotConfigFiles"
+ headers="[[auth_headers]]">
</iron-ajax>
<div class="center title">
@@ -50,7 +51,7 @@
<template is="dom-if" if="[[isLoading]]">
<div class="center">Fetching config files...</div>
</template>
- <template is="dom-if" if="[[_not(isLoading)]]">
+ <template is="dom-if" if="[[!isLoading]]">
<template is="dom-repeat" items="[[files]]" as="file">
<config-file-card
name="[[file.path]]" link="[[location]]/[[file.path]]">
@@ -90,10 +91,6 @@
if (category === "services") return "Service";
},
- _not: function(b) {
- return !b;
- },
-
_onGotConfigFiles: function(event) {
this.files = event.detail.response.config_sets[0].files;
this.location = event.detail.response.config_sets[0].location;

Powered by Google App Engine
This is Rietveld 408576698