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

Unified Diff: dashboard/dashboard/elements/bisect-button.html

Issue 1948813002: [Polymer10] Port dashboard buttons to Polymer 1.0 (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Address Annie's comment Created 4 years, 8 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 | « no previous file | dashboard/dashboard/elements/chart-legend.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/bisect-button.html
diff --git a/dashboard/dashboard/elements/bisect-button.html b/dashboard/dashboard/elements/bisect-button.html
index db61e1628ce528c0cf27ff3f069b4c1018ca1bc9..4546e05a09fdf1f7f8f1dc345b84dc77741d4878 100644
--- a/dashboard/dashboard/elements/bisect-button.html
+++ b/dashboard/dashboard/elements/bisect-button.html
@@ -10,7 +10,7 @@ found in the LICENSE file.
<link rel="import" href="/dashboard/elements/bisect-form.html">
<link rel="import" href="/dashboard/static/simple_xhr.html">
-<polymer-element name="bisect-button" attributes="bisectInfo bugId xsrfToken">
+<dom-module id="bisect-button">
<template>
<style>
/*
@@ -38,9 +38,9 @@ found in the LICENSE file.
</style>
<paper-button raised
id="button"
- disabled?={{!canBisect}}
- enabled?={{canBisect}}
- on-click="{{onBisect}}">Bisect</paper-button>
+ disabled$={{!canBisect}}
+ enabled$={{canBisect}}
+ on-click="onBisect">Bisect</paper-button>
<bisect-form
id="bisect"
xsrfToken="{{xsrfToken}}"
@@ -54,6 +54,17 @@ found in the LICENSE file.
(function() {
Polymer('bisect-button', {
+
+ is: 'bisect-button',
+ properties: {
+ bisectInfo: {
+ notify: true,
+ observer: 'bisectInfoChanged'
+ },
+ bugId: { notify: true },
+ xsrfToken: { notify: true }
+ },
+
/**
* Initializes this element; this is an element lifecycle callback.
*/
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-legend.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698