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

Unified Diff: ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js

Issue 2625213002: WebUI: Add cr_policy_network_indicator_tests.js (Closed)
Patch Set: Disable for not CrOS Created 3 years, 9 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 | « ui/webui/resources/cr_elements/network/cr_network_list_item.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
index 6d9d7fe2cac30d4fe43bdba56a700fa045aa14c6..1d806e33d39098bca3a6b7be7ef27c46b012e8ab 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
@@ -17,7 +17,7 @@ Polymer({
* Network property associated with the indicator.
* @type {!CrOnc.ManagedProperty|undefined}
*/
- property: {type: Object, observer: 'propertyChanged_'},
+ property: Object,
/**
* Recommended value for non enforced properties.
@@ -28,15 +28,15 @@ Polymer({
/** @override */
indicatorTooltip: {
type: String,
- computed: 'getNetworkIndicatorTooltip_(indicatorType)',
+ computed: 'getNetworkIndicatorTooltip_(indicatorType, property.*)',
},
},
- /**
- * @param {!CrOnc.ManagedProperty} property Always defined property value.
- * @private
- */
- propertyChanged_: function(property) {
+ observers: ['propertyChanged_(property.*)'],
+
+ /** @private */
+ propertyChanged_: function() {
+ var property = this.property;
if (!this.isControlled(property)) {
this.indicatorType = CrPolicyIndicatorType.NONE;
return;
« no previous file with comments | « ui/webui/resources/cr_elements/network/cr_network_list_item.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698