Allow setting the registry lock password in the UI (#241)

* Allow setting the lock password in the UI

* Add more screenshot tests

* Responses to CR and more screenshot tests

* Formatting

* Simplify lambda
This commit is contained in:
gbrodman 2019-09-03 16:39:02 -04:00 committed by GitHub
parent 0b2c65c59d
commit 45b960db1d
15 changed files with 266 additions and 38 deletions

View file

@ -117,7 +117,8 @@ registry.json.Response.prototype.results;
* localizedAddress: registry.json.RegistrarAddress,
* whoisServer: (string?|undefined),
* referralUrl: (string?|undefined),
* contacts: !Array.<registry.json.RegistrarContact>
* contacts: !Array.<registry.json.RegistrarContact>,
* registryLockAllowed: boolean
* }}
*/
registry.json.Registrar;
@ -144,7 +145,9 @@ registry.json.RegistrarAddress;
* visibleInDomainWhoisAsAbuse: boolean,
* phoneNumber: (string?|undefined),
* faxNumber: (string?|undefined),
* types: (string?|undefined)
* types: (string?|undefined),
* allowedToSetRegistryLockPassword: boolean,
* registryLockAllowed: boolean
* }}
*/
registry.json.RegistrarContact;

View file

@ -102,7 +102,8 @@ registry.registrar.ContactSettings.prototype.renderItem = function(rspObj) {
item: targetContact,
namePrefix: 'contacts[' + targetContactNdx + '].',
actualTypesLookup: actualTypesLookup,
readonly: (rspObj.readonly || false)
readonly: (rspObj.readonly || false),
registryLockAllowedForRegistrar: rspObj.registryLockAllowed
});
this.setupAppbar();
} else {