| 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;
|
|
|