mirror of
https://github.com/google/nomulus.git
synced 2025-06-21 03:40:47 +02:00
Gray out the password field for admins (#506)
* Gray out the password field for admins We don't check it for admins since it's not necessary, so ignore it * Remove the field entirely
This commit is contained in:
parent
a9cfa1dc96
commit
c8387a5669
5 changed files with 9 additions and 6 deletions
|
@ -45,6 +45,7 @@ registry.registrar.RegistryLock = function(console, resource) {
|
|||
goog.inherits(registry.registrar.RegistryLock, registry.ResourceComponent);
|
||||
|
||||
registry.registrar.RegistryLock.prototype.runAfterRender = function(objArgs) {
|
||||
this.isAdmin = objArgs.isAdmin;
|
||||
this.clientId = objArgs.clientId;
|
||||
this.xsrfToken = objArgs.xsrfToken;
|
||||
|
||||
|
@ -114,7 +115,8 @@ registry.registrar.RegistryLock.prototype.showModal_ = function(targetElement, d
|
|||
var parentElement = targetElement.parentElement;
|
||||
// attach the modal to the parent element so focus remains correct if the user closes the modal
|
||||
var modalElement = goog.soy.renderAsElement(
|
||||
registry.soy.registrar.registrylock.confirmModal, {domain: domain, isLock: isLock});
|
||||
registry.soy.registrar.registrylock.confirmModal,
|
||||
{domain: domain, isLock: isLock, isAdmin: this.isAdmin});
|
||||
parentElement.prepend(modalElement);
|
||||
if (domain == null) {
|
||||
goog.dom.getRequiredElement('domain-lock-input-value').focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue