Commit eb118a8a authored by qghc36@motorola.com's avatar qghc36@motorola.com

Options: Fix to enable Edit button only when the current profile is selected....

Options: Fix to enable Edit button only when the current profile is selected. Prevents a profile from editing the avatar and profile name of another profile in the Personal Options page. These changes got overwritten due to revision 107894. Bringing them back.


BUG=87658
TEST=NONE


Review URL: http://codereview.chromium.org/8341139

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107901 0039d316-1c4b-4281-b951-d872f2087c98
parent afca65e7
......@@ -223,7 +223,8 @@ cr.define('options', function() {
var selectedProfile = profilesList.selectedItem;
var hasSelection = selectedProfile != null;
var hasSingleProfile = profilesList.dataModel.length == 1;
$('profiles-manage').disabled = !hasSelection;
$('profiles-manage').disabled = !hasSelection ||
!selectedProfile.isCurrentProfile;
$('profiles-delete').disabled = !hasSelection || hasSingleProfile;
},
......
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