OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="instance_ref.html"> | 2 <link rel="import" href="instance_ref.html"> |
3 <link rel="import" href="error_ref.html"> | 3 <link rel="import" href="error_ref.html"> |
4 <link rel="import" href="observatory_element.html"> | 4 <link rel="import" href="observatory_element.html"> |
5 | 5 |
6 <polymer-element name="eval-box" extends="observatory-element"> | 6 <polymer-element name="eval-box" extends="observatory-element"> |
7 <template> | 7 <template> |
8 <style> | 8 <style> |
9 .textbox { | 9 .textbox { |
10 flex-grow: 1; | 10 flex-grow: 1; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 <br> | 68 <br> |
69 <template if="{{ results.isNotEmpty }}"> | 69 <template if="{{ results.isNotEmpty }}"> |
70 <table> | 70 <table> |
71 <tr template repeat="{{ result in results }}"> | 71 <tr template repeat="{{ result in results }}"> |
72 <td class="historyExpr"> | 72 <td class="historyExpr"> |
73 <a class="expr" on-click="{{ selectExpr }}" | 73 <a class="expr" on-click="{{ selectExpr }}" |
74 expr="{{ result['expr'] }}">{{ result['expr'] }}</a> | 74 expr="{{ result['expr'] }}">{{ result['expr'] }}</a> |
75 </td> | 75 </td> |
76 <td class="historyValue"> | 76 <td class="historyValue"> |
77 <template if="{{ result['value'] == null }}"> | 77 <template if="{{ result['error'] != null}}"> |
78 <div style="color:#aaa;cursor:wait;"><pending></div> | 78 <div style="color:red">{{ result['error'] }}</div> |
79 </template> | 79 </template> |
80 <template if="{{ result['value'] != null }}"> | 80 <template if="{{ result['error'] == null}}"> |
81 <any-service-ref ref="{{ result['value'] }}"></any-service-ref> | 81 <template if="{{ result['value'] != null }}"> |
| 82 <any-service-ref ref="{{ result['value'] }}"></any-service-ref> |
| 83 </template> |
| 84 <template if="{{ result['value'] == null }}"> |
| 85 <div style="color:#aaa;cursor:wait;"><pending></div> |
| 86 </template> |
82 </template> | 87 </template> |
83 </td> | 88 </td> |
84 </tr> | 89 </tr> |
85 </table> | 90 </table> |
86 </template> | 91 </template> |
87 </template> | 92 </template> |
88 </polymer-element> | 93 </polymer-element> |
89 | 94 |
90 <script type="application/dart" src="eval_box.dart"></script> | 95 <script type="application/dart" src="eval_box.dart"></script> |
OLD | NEW |