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

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 the modified file. Changes can be seen by clicking on Delta from patch set 2. 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..a55eb529523805fc423fa4ddbb903dc54c0aefc3 100644
--- a/appengine/config_service/ui/src/config-ui/config-set.html
+++ b/appengine/config_service/ui/src/config-ui/config-set.html
@@ -34,13 +34,16 @@
}
</style>
- <iron-ajax
- auto
- id="requestConfigs"
- url="/_ah/api/config/v1/config-sets?config_set=[[category]]%2F[[name]]&include_files=true"
- handle-as="json"
- on-response="_onGotConfigFiles">
- </iron-ajax>
+ <template is="dom-if" if="[[!hidden]]">
+ <iron-ajax
+ auto
+ id="requestConfigs"
+ url="/_ah/api/config/v1/config-sets?config_set=[[category]]/[[name]][[route.path]]&include_files=true"
+ handle-as="json"
+ on-response="_onGotConfigFiles"
+ headers="{{auth_headers}}">
+ </iron-ajax>
+ </template>
<div class="center title">
<div class="name">[[name]][[route.path]]</div>
@@ -50,7 +53,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 +93,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