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

Unified Diff: appengine/config_service/ui/src/config-ui/config-set-card.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/config-set-card.html
diff --git a/appengine/config_service/ui/src/config-ui/config-set-card.html b/appengine/config_service/ui/src/config-ui/config-set-card.html
index 0c500eb10a25efd28140563e7fd8193c2241aca9..9f1cbf4f29504101f34c0c85c3064dd25972a3fe 100644
--- a/appengine/config_service/ui/src/config-ui/config-set-card.html
+++ b/appengine/config_service/ui/src/config-ui/config-set-card.html
@@ -6,23 +6,43 @@
<link rel="import" href="../../bower_components/paper-item/paper-item.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">
+<link rel="import" href="../../bower_components/iron-icons/maps-icons.html">
+<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
<dom-module id="config-set-card">
<template>
- <style>
+ <style include="iron-flex iron-flex-alignment">
.center {
margin: auto;
width: 25%;
border-style: solid;
border-width: 2px;
}
+
+ iron-icon {
+ float: right;
+ }
+
</style>
<paper-item class="center" id="paper-box">
<!-- TODO(cwpayton): Add launch icon next to the name of the config
so that upon clicking the icon, the user will be taken to the config
set page. -->
- [[name]]
+ <div class="horizontal layout wrap" style="width: 100%">
+ [[name]]
+ <template is="dom-if" if="[[lastImportAttempt]]" restamp="true">
+ <template is="dom-if" if="[[lastImportAttempt.success]]" restamp="true">
+ <iron-icon icon="icons:check-circle"></iron-icon>
+ </template>
+ <template is="dom-if" if="[[_not(lastImportAttempt.success)]]" restamp="true">
+ <iron-icon icon="icons:warning"></iron-icon>
+ </template>
+ </template>
+ <template is="dom-if" if="[[_not(lastImportAttempt)]]" restamp="true">
+ <iron-icon icon="icons:help"></iron-icon>
+ </template>
+ </div>
</paper-item>
</template>
<script>
@@ -30,10 +50,20 @@
is: "config-set-card",
properties: {
+
name: {
type: String
- }
- }
+ },
+
+ lastImportAttempt: {
+ type: Object
+ },
+
+ },
+
+ _not: function(b) {
+ return !b;
+ },
});
</script>
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-set.html ('k') | appengine/config_service/ui/src/config-ui/config-ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698