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

Unified Diff: chrome/browser/resources/settings/people_page/people_page.js

Issue 2539733004: MD Settings: Overhaul Easy Unlock Turn Off Dialog. (Closed)
Patch Set: fix copy pasta Created 4 years 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 | « chrome/browser/resources/settings/people_page/people_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/people_page/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index eee145ccd8dffe61887ffc0c7de74dac01f4f051..124614dd46406724a26546ab01b94d03982dac20 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -117,6 +117,12 @@ Polymer({
},
readOnly: true,
},
+
+ /** @private */
+ showEasyUnlockTurnOffDialog_: {
+ type: Boolean,
+ value: false,
+ },
</if>
},
@@ -218,6 +224,8 @@ Polymer({
*/
handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) {
this.easyUnlockEnabled_ = easyUnlockEnabled;
+ this.showEasyUnlockTurnOffDialog_ =
+ easyUnlockEnabled && this.showEasyUnlockTurnOffDialog_;
},
</if>
@@ -329,7 +337,12 @@ Polymer({
/** @private */
onEasyUnlockTurnOffTap_: function() {
- this.$$('#easyUnlockTurnOffDialog').open();
+ this.showEasyUnlockTurnOffDialog_ = true;
+ },
+
+ /** @private */
+ onEasyUnlockTurnOffDialogClose_: function() {
+ this.showEasyUnlockTurnOffDialog_ = false;
},
</if>
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698