mirror of
https://github.com/google/nomulus
synced 2026-09-19 14:34:18 +00:00
Only show OT&E admin actions when not in production environment
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=237061813
This commit is contained in:
@@ -54,12 +54,15 @@ registry.registrar.AdminSettings.prototype.bindToDom = function(id) {
|
||||
|
||||
/** @override */
|
||||
registry.registrar.AdminSettings.prototype.runAfterRender = function(objArgs) {
|
||||
goog.events.listen(
|
||||
goog.dom.getRequiredElement('btn-ote-status'),
|
||||
goog.events.EventType.CLICK,
|
||||
goog.bind(
|
||||
this.oteStatusCheck_, this, objArgs.xsrfToken, objArgs.clientId),
|
||||
false, this);
|
||||
const oteButton = goog.dom.getElement('btn-ote-status');
|
||||
if (oteButton) {
|
||||
goog.events.listen(
|
||||
oteButton,
|
||||
goog.events.EventType.CLICK,
|
||||
goog.bind(
|
||||
this.oteStatusCheck_, this, objArgs.xsrfToken, objArgs.clientId),
|
||||
false, this);
|
||||
}
|
||||
};
|
||||
|
||||
/** @override */
|
||||
|
||||
Reference in New Issue
Block a user