OLD | NEW |
---|---|
(Empty) | |
1 <!-- | |
2 Copyright 2014 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 | |
7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> | |
8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html"> | |
9 <link rel="import" href="ct-failure-analyzer.html"> | |
10 <link rel="import" href="ct-failure-grouper.html"> | |
11 <link rel="import" href="ct-failure-stream.html"> | |
12 | |
13 <polymer-element name="ct-unexpected-failures"> | |
14 <template> | |
15 <style> | |
16 paper-toast { | |
esprehn
2014/07/08 16:25:05
You probably meant to add :host { display: block;
| |
17 bottom: 40px; | |
18 left: 10px; | |
19 } | |
20 #update { | |
21 background: #4285f4; | |
22 color: #fff; | |
23 } | |
24 </style> | |
25 <ct-failure-analyzer id="analyzer" status="{{analyzerStatus}}" failures="{{f ailures}}"></ct-failure-analyzer> | |
26 <ct-failure-grouper failures="{{failures}}" groups="{{failureGroups}}"></ct- failure-grouper> | |
27 <paper-button id="update" on-tap="{{update}}">Update</paper-button> | |
28 <ct-failure-stream groups="{{failureGroups}}"></ct-failure-stream> | |
esprehn
2014/07/08 16:25:05
Some of these seem to be data sources and some are
| |
29 <paper-toast id="toast" text="{{analyzerStatus}}"></paper-toast> | |
ojan
2014/06/29 04:48:25
BTW, I tried this out locally and I'm not sure the
| |
30 </template> | |
31 <script> | |
32 Polymer({ | |
33 attached: function() { | |
34 this.update(); | |
35 }, | |
36 | |
37 update: function() { | |
38 this.$.analyzer.update(); | |
39 }, | |
40 | |
41 analyzerStatusChanged: function() { | |
42 this.$.toast.show(); | |
43 }, | |
44 }); | |
45 </script> | |
46 </polymer-element> | |
OLD | NEW |