| Index: appengine/config_service/ui/src/config-ui/front-page.html
|
| diff --git a/appengine/config_service/ui/src/config-ui/front-page.html b/appengine/config_service/ui/src/config-ui/front-page.html
|
| index deb076d47bc52cea37bd1699283060bc78868141..45e0fdc014757e21ad01fecd4b769950f4794e50 100644
|
| --- a/appengine/config_service/ui/src/config-ui/front-page.html
|
| +++ b/appengine/config_service/ui/src/config-ui/front-page.html
|
| @@ -38,7 +38,7 @@
|
| <iron-ajax
|
| auto
|
| id="requestConfigs"
|
| - url="/_ah/api/config/v1/config-sets"
|
| + url="/_ah/api/config/v1/config-sets?include_last_import_attempt=true"
|
| handle-as="json"
|
| on-response="_onGotConfigSets"
|
| headers="[[auth_headers]]">
|
| @@ -58,7 +58,11 @@
|
| </template>
|
| <template is="dom-if" if="[[_not(_isEmpty(searchResults))]]">
|
| <template is="dom-repeat" items="[[searchResults]]" as="config">
|
| - <config-set-card name="[[config.config_set]]" on-tap="_handleClick"></config-set-card>
|
| + <config-set-card
|
| + name="[[config.config_set]]"
|
| + last-import-attempt="[[_getLastImportAttempt(config.last_import_attempt)]]"
|
| + on-tap="_handleClick">
|
| + </config-set-card>
|
| </template>
|
| </template>
|
| </template>
|
| @@ -91,6 +95,14 @@
|
| }
|
| },
|
|
|
| + _getLastImportAttempt: function(lastImportAttempt) {
|
| + if (lastImportAttempt) {
|
| + return lastImportAttempt;
|
| + } else {
|
| + return null;
|
| + }
|
| + },
|
| +
|
| _isEmpty: function(array) {
|
| return array.length === 0;
|
| },
|
|
|