Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/guides/permissions/update_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ In the Default Signature Account panel, you can see the list of accounts with pu

After checking which account you want to update, click the "EDIT" button corresponding to that account.

:warning: - The default `eosio` account created when initializing the blockchain using our tool cannot be edited.

## Updating Keys

For instance, let us assume you want to update an account with the name `dragonfruit`. You would click the "EDIT" button corresponding to the `dragonfruit` account, which would take you to this panel:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ const Permissionlist = (props) => {
});
}

function isDefaultEosio (permissionList) {
let _accountNameOne = (permissionList[0]) ?
permissionList[0].account === 'eosio' : false;
let _accountNameTwo = (permissionList[1]) ?
permissionList[1].account === 'eosio' : false;
let _accountOneId = (permissionList[0]) ?
(permissionList[0]._id === '1' || permissionList[0]._id === '2') : false;
let _accountTwoId = (permissionList[1]) ?
(permissionList[1]._id === '1' || permissionList[1]._id === '2') : false;

return _accountNameOne && _accountNameTwo && _accountOneId && _accountTwoId;
}

function containsOnlyActiveOrOwner (permissionList) {
let _permissionOneCorrect = false;
let _permissionTwoCorrect = false;
Expand Down Expand Up @@ -217,9 +230,13 @@ const Permissionlist = (props) => {
<ButtonPrimary
style={{float:'right', marginRight:'5%'}}
onClick={() => getKeysData(defaultAccountsList[account][0].account, list, "edit")}
disabled={isDefaultEosio(defaultAccountsList[account])}
block
>
Edit
{
(isDefaultEosio(defaultAccountsList[account])) ?
"Uneditable" : "Edit"
}
</ButtonPrimary>
</EditButtonCell>
</tr>
Expand Down