"use strict"; /** * Licensed Materials - Property of IBM * IBM Cognos Products: Cognos Analytics * Copyright IBM Corp. 2015, 2017 * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['underscore', 'bi/admin/common/slideout/BasePane', 'bi/admin/account/ui/SecurityObjectExplorerView', 'react-dom', 'react', 'bi/admin/account/services/SecurityObjectExplorerAdaptor'], function (_, BasePane, SecurityObjectExplorerView, ReactDOM, React, SecurityObjectExplorerAdaptor) { 'use strict'; //NOSONAR: meant to be strict var AccountListPane = BasePane.extend({ init: function init(options) { AccountListPane.inherited('init', this, arguments); this.explorerView = this._getNewSecurityObjectExplorerView(); }, _getNewSecurityObjectExplorerView: function _getNewSecurityObjectExplorerView() { return new SecurityObjectExplorerView({ glassContext: this.glassContext, showBreadcrumbs: true, listAdaptor: new SecurityObjectExplorerAdaptor({ glassContext: this.glassContext }), parent: this, includeToolbar: true }); }, renderBody: function renderBody($body) { this.explorerView.$el = $body; return this.explorerView.render($body); }, remove: function remove() { AccountListPane.inherited('remove', this, arguments); ReactDOM.unmountComponentAtNode(this.explorerView.$el.find('.bi-admin-account-pagingBar')[0]); ReactDOM.unmountComponentAtNode(this.explorerView.$el.find('.bi-admin-account-createNewBar')[0]); ReactDOM.unmountComponentAtNode(this.explorerView.$el.find(".bi-admin-filterbar-leading")[0]); } }); return AccountListPane; });