"use strict"; /** * Licensed Materials - Property of IBM * IBM Cognos Products: admin * Copyright IBM Corp. 2018 * US Government Users Restricted Rights - * Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['bi/admin/common/slideout/BasePane', 'bi/admin/nls/StringResource', 'react-dom', 'react', 'ba-react-admin/ba-react-admin.min'], function (BasePane, StringResource, ReactDOM, React, AdminReact) { 'use strict'; //NOSONAR: meant to be strict var SystemPane = BasePane.extend({ init: function init(options) { SystemPane.inherited('init', this, arguments); $.extend(this, options); }, renderBody: function renderBody($body) { ReactDOM.unmountComponentAtNode(this.$el.find('.bi-admin-pane-body')[0]); return this.glassContext.getCoreSvc('.UserProfile').isSysAdmin().then(function (isSysAdmin) { var isNotSysAdmin = isSysAdmin === false; this.reactBulkImportPane = React.createElement(AdminReact.ConfigurationView, { 'StringResource': StringResource, 'glassContext': this.glassContext, 'isNotSysAdmin': isNotSysAdmin }); ReactDOM.render(this.reactBulkImportPane, this.$el.find('.bi-admin-pane-body')[0]); }.bind(this)); }, remove: function remove() { SystemPane.inherited('remove', this, arguments); ReactDOM.unmountComponentAtNode(this.$el.find('.bi-admin-pane-body')[0]); this.reactBulkImportPane = null; } }); return SystemPane; });