Commit ce40c016 authored by treib's avatar treib Committed by Commit bot

Supervised user import dialog: disable "ok" button when no user is selected

BUG=470070

Review URL: https://codereview.chromium.org/1060333002

Cr-Commit-Position: refs/heads/master@{#324205}
parent b291bd19
...@@ -45,11 +45,8 @@ cr.define('options', function() { ...@@ -45,11 +45,8 @@ cr.define('options', function() {
supervisedUserList.addEventListener('change', function(event) { supervisedUserList.addEventListener('change', function(event) {
var supervisedUser = supervisedUserList.selectedItem; var supervisedUser = supervisedUserList.selectedItem;
if (!supervisedUser)
return;
$('supervised-user-import-ok').disabled = $('supervised-user-import-ok').disabled =
supervisedUserList.selectedItem.onCurrentDevice; !supervisedUser || supervisedUser.onCurrentDevice;
}); });
var self = this; var self = this;
......
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