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 | 4 |
4 <polymer-element name="eval-link"> | 5 <polymer-element name="eval-link"> |
5 <template> | 6 <template> |
6 <style> | 7 <style> |
7 .idle { | 8 .idle { |
8 color: #0489c3; | 9 color: #0489c3; |
9 cursor: pointer; | 10 cursor: pointer; |
10 } | 11 } |
11 .busy { | 12 .busy { |
12 color: #aaa; | 13 color: #aaa; |
13 cursor: wait; | 14 cursor: wait; |
14 } | 15 } |
15 </style> | 16 </style> |
16 | 17 |
17 <template if="{{ busy }}"> | 18 <template if="{{ busy }}"> |
18 <span class="busy">{{ label }}</span> | 19 <span class="busy">{{ label }}</span> |
19 </template> | 20 </template> |
20 <template if="{{ !busy }}"> | 21 <template if="{{ !busy }}"> |
21 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span> | 22 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span> |
22 </template> | 23 </template> |
23 <template if="{{ result != null }}"> | 24 <template if="{{ result != null }}"> |
24 = <instance-ref ref="{{ result }}"></instance-ref> | 25 = <any-service-ref ref="{{ result }}"></any-service-ref> |
25 </template> | 26 </template> |
26 </template> | 27 </template> |
27 </polymer-element> | 28 </polymer-element> |
28 | 29 |
29 <script type="application/dart" src="eval_link.dart"></script> | 30 <script type="application/dart" src="eval_link.dart"></script> |
OLD | NEW |