"use strict"; /** * Licensed Materials - Property of IBM * IBM Cognos Products: Cognos Analytics * Copyright IBM Corp. 2018, 2018 * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['react', 'react-dom', 'ba-react-admin/ba-react-admin.min', 'underscore', 'bi/admin/nls/StringResource', 'bi/glass/app/ContentView'], function (React, ReactDOM, AdminReact, _, StringResource, ContentView) { var DistListMembersTab = ContentView.extend({ init: function init(options) { DistListMembersTab.inherited('init', this, arguments); _.extend(this, options); }, openAddMembersSlideout: function openAddMembersSlideout(aStore, isActiveFunction, addToFunction) { this.glassContext.appController.showSlideOut({ parent: this.slideout, content: { module: 'bi/admin/account/slideout/AddMembersToSlideout', id: 'AddMembersTo', glassContext: this.glassContext, store: aStore, activeFunction: isActiveFunction, addToFunction: addToFunction }, width: '400px' }); }, render: function render() { ReactDOM.unmountComponentAtNode(this.$el[0]); var distListMembersPanel = React.createElement(AdminReact.DistListMembersPanel, { glassContext: this.glassContext, StringResource: StringResource, parent: this, directoryId: this.objectInfo.id }); ReactDOM.render(distListMembersPanel, this.$el[0]); return Promise.resolve(); }, onClose: function onClose() { if (this.$el) { ReactDOM.unmountComponentAtNode(this.$el[0]); } this.viewState = null; return DistListMembersTab.inherited('remove', this, arguments); } }); return DistListMembersTab; });