12345678910111213141516171819202122232425262728293031323334353637383940 |
- "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', 'bacontentnav/common/ContentListPageView', 'bi/admin/common/utils/AJAXUtils'], function (React, ReactDOM, AdminReact, _, StringResource, ContentView, AJAXUtils) {
- var CopyUserProfileView = ContentView.extend({
- init: function init(options) {
- CopyUserProfileView.inherited('init', this, arguments);
- _.extend(this, options);
- },
- render: function render() {
- this.$el.empty();
- ReactDOM.render(React.createElement(AdminReact.CopyUserProfilePane, {
- copyTargets: [],
- StringResource: StringResource,
- data: this.data,
- hideSlideout: function () {
- this.slideout.hide();
- }.bind(this),
- glassContext: this.glassContext,
- parentView: this.parentView,
- AJAXUtils: AJAXUtils,
- deleteUserProfile: this.deleteUserProfile,
- listRefresh: this.listRefresh
- }), this.$el[0]);
- return Promise.resolve();
- },
- refresh: function refresh() {
- this.$el.empty();
- this.render();
- }
- });
- return CopyUserProfileView;
- });
|