"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/glass/app/ContentView', 'bi/admin/nls/StringResource'], function (React, ReactDOM, AdminReact, _, ContentView, StringResource, DateTimeUtils, GlassContextHelper) { 'use strict'; //NOSONAR: meant to be strict var SortSlideout = ContentView.extend({ init: function init(options) { SortSlideout.inherited('init', this, arguments); _.extend(this, options); }, render: function render() { ReactDOM.unmountComponentAtNode(this.$el[0]); var addMembersPane = React.createElement(AdminReact.SortSlideout, { glassContext: this.glassContext, StringResource: StringResource, dialog: this, title: this.title, controllerStore: this.controllerStore, sortContent: this.sortContent, isPanel: true }); ReactDOM.render(addMembersPane, this.$el[0]); return Promise.resolve(); }, remove: function remove() { if (this.$el) { ReactDOM.unmountComponentAtNode(this.$el[0]); } this.viewState = null; return SortSlideout.inherited('remove', this, arguments); } }); return SortSlideout; });