Commit 9f61c834 authored by Nikita Podguzov's avatar Nikita Podguzov Committed by Commit Bot

Fix the disappearance of 'Show password' button in network configuration.

Bug: 899193
Change-Id: I282a91ea90d5cebe4353a223960712c3b3be9c73
Reviewed-on: https://chromium-review.googlesource.com/c/1308715Reviewed-by: default avatarAlexander Hendrich <hendrich@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Nikita Podguzov <nikitapodguzov@google.com>
Cr-Commit-Position: refs/heads/master@{#604270}
parent 943f8147
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
disabled="[[getDisabled_(disabled, property)]]" disabled="[[getDisabled_(disabled, property)]]"
type="[[getInputType_(showPassword)]]" on-keypress="onInputKeypress_"> type="[[getInputType_(showPassword)]]" on-keypress="onInputKeypress_">
</cr-input> </cr-input>
<template is="dom-if" if="[[!getDisabled_(disabled, property)]]" restamp> <template is="dom-if" if="[[!showPolicyIndicator_]]" restamp>
<paper-icon-button-light id="icon" slot="suffix" <paper-icon-button-light id="icon" slot="suffix"
class$="[[getIconClass_(showPassword)]]"> class$="[[getIconClass_(showPassword)]]">
<button on-tap="onShowPasswordTap_" <button on-tap="onShowPasswordTap_"
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</button> </button>
</paper-icon-button-light> </paper-icon-button-light>
</template> </template>
<template is="dom-if" if="[[getDisabled_(disabled, property)]]" restamp> <template is="dom-if" if="[[showPolicyIndicator_]]" restamp>
<cr-policy-network-indicator <cr-policy-network-indicator
property="[[property]]" tooltip-position="left"> property="[[property]]" tooltip-position="left">
</cr-policy-network-indicator> </cr-policy-network-indicator>
......
...@@ -29,6 +29,13 @@ Polymer({ ...@@ -29,6 +29,13 @@ Polymer({
type: Boolean, type: Boolean,
value: false, value: false,
}, },
/** @private */
showPolicyIndicator_: {
type: Boolean,
value: false,
computed: 'getDisabled_(disabled, property)',
},
}, },
focus: function() { focus: function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment