mirror of
https://github.com/google/nomulus
synced 2026-02-04 12:02:30 +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 */
|
||||
|
||||
@@ -36,11 +36,13 @@ goog.require('registry.registrar.Console');
|
||||
* @param {string} announcementsEmail
|
||||
* @param {string} supportPhoneNumber
|
||||
* @param {string} technicalDocsUrl
|
||||
* @param {string} environment
|
||||
* @export
|
||||
*/
|
||||
registry.registrar.main = function(
|
||||
xsrfToken, clientId, isAdmin, isOwner, productName, integrationEmail,
|
||||
supportEmail, announcementsEmail, supportPhoneNumber, technicalDocsUrl) {
|
||||
supportEmail, announcementsEmail, supportPhoneNumber, technicalDocsUrl,
|
||||
environment) {
|
||||
const console = new registry.registrar.Console({
|
||||
xsrfToken: xsrfToken,
|
||||
clientId: clientId,
|
||||
@@ -51,7 +53,8 @@ registry.registrar.main = function(
|
||||
supportEmail: supportEmail,
|
||||
announcementsEmail: announcementsEmail,
|
||||
supportPhoneNumber: supportPhoneNumber,
|
||||
technicalDocsUrl: technicalDocsUrl
|
||||
technicalDocsUrl: technicalDocsUrl,
|
||||
environment: environment,
|
||||
});
|
||||
|
||||
console.setUp();
|
||||
|
||||
Reference in New Issue
Block a user