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

Unified Diff: appengine/sheriff_o_matic/ui/ct-banner.html

Issue 1315693002: SoM: upgrade Polymer from 0.5 to 1.0 Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: get bower_components from polymer_1.0.4 Created 5 years, 4 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
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-alerts.html ('k') | appengine/sheriff_o_matic/ui/ct-build-failure-ext.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/sheriff_o_matic/ui/ct-banner.html
diff --git a/appengine/sheriff_o_matic/ui/ct-banner.html b/appengine/sheriff_o_matic/ui/ct-banner.html
index 32a4ec2dfb230313377b62fc6918f276ecf81f47..0accb05003f8aeeef6d825df949209c1cdac9e60 100644
--- a/appengine/sheriff_o_matic/ui/ct-banner.html
+++ b/appengine/sheriff_o_matic/ui/ct-banner.html
@@ -2,11 +2,8 @@
Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
--->
-
-<link rel="import" href="../appengine_module/components/net.html">
-<polymer-element name="ct-banner" attributes = "message">
- <template>
+--><html><head><link rel="import" href="../appengine_module/components/net.html">
+<dom-module id="ct-banner">
<style>
.message {
text-align: center;
@@ -16,20 +13,23 @@ found in the LICENSE file.
border-radius: 4px;
}
</style>
- <template if="{{ message }}">
+ <template>
+ <template is="dom-if" if="{{ message }}">
<div class="message">{{ message }}</div>
</template>
</template>
<script>
- Polymer({
- update: function() {
- return net.json('/banner-msg').then(function(data) {
- this.message = data.message;
- }.bind(this), function(err) {
- window.console.log("Banner message error: " + err);
- });
- }
- });
+ Polymer({
+ is: 'ct-banner',
+ properties: { message: { notify: true } },
+ update: function () {
+ return net.json('/banner-msg').then(function (data) {
+ this.message = data.message;
+ }.bind(this), function (err) {
+ window.console.log('Banner message error: ' + err);
+ });
+ }
+ });
</script>
-</polymer-element>
+</dom-module>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-alerts.html ('k') | appengine/sheriff_o_matic/ui/ct-build-failure-ext.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698