Chromium Code Reviews| 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..85a6b3fd20bd53e6e8d0c39ac59b18aec0f098dc 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,38 @@ |
| <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]]"> |
| + <iron-icon icon="icons:check-circle"></iron-icon> |
| + </template> |
| + <template is="dom-if" if="[[_not(lastImportAttempt)]]"> |
| + <iron-icon icon="icons:warning"></iron-icon> |
| + </template> |
| + </div> |
| </paper-item> |
| </template> |
| <script> |
| @@ -30,10 +45,20 @@ |
| is: "config-set-card", |
| properties: { |
| + |
| name: { |
| type: String |
| - } |
| - } |
| + }, |
| + |
| + lastImportAttempt: { |
|
Sergey Berezin
2017/06/26 23:16:26
nit: I'd name it lastImportAttemptSuccess, to be c
ayanaadylova
2017/06/28 15:37:28
Done.
|
| + type: Boolean, |
| + }, |
| + |
| + }, |
| + |
| + _not: function(b) { |
| + return !b; |
| + }, |
| }); |
| </script> |