Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | |
| 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html"> | |
| 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> | |
| 5 <link rel="import" href="/controls/pref_control_behavior.html"> | |
| 6 <link rel="import" href="/settings_shared_css.html"> | |
| 7 | |
| 8 <dom-module id="controlled-button"> | |
| 9 <link rel="import" type="css" href="chrome://resources/cr_elements/shared.css" > | |
| 10 <template> | |
| 11 <style include="settings-shared"> | |
| 12 cr-policy-pref-indicator { | |
| 13 -webkit-margin-start: var(--checkbox-spacing); | |
| 14 } | |
| 15 </style> | |
| 16 | |
| 17 <paper-button disabled="[[disabled_]]"> | |
|
stevenjb
2016/07/26 16:19:34
'disabled_' confused me for a bit, maybe 'prefDisa
Dan Beam
2016/07/26 19:36:50
I actually changed to "disabled" as it matches a :
| |
| 18 <content></content> | |
| 19 </paper-button> | |
| 20 | |
| 21 <template is="dom-if" if="[[disabled_]]"> | |
| 22 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | |
| 23 </template> | |
| 24 </template> | |
| 25 <script src="/controls/controlled_button.js"></script> | |
| 26 </dom-module> | |
| OLD | NEW |