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

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

Issue 2959833002: config_service: add last import validation and tests (Closed)
Patch Set: Include a bug number for making the element call on-response handler automatically. Created 3 years, 5 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/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;
},
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-ui.html ('k') | appengine/config_service/ui/static/elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698