mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02: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:
parent
6b9b60d38c
commit
90e298fb39
10 changed files with 38 additions and 19 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue