12345678910111213141516171819202122232425262728293031323334353637383940 |
- "use strict";
- /**
- * Licensed Materials - Property of IBM
- *
- * IBM Cognos Products: ADMIN
- *
- * Copyright IBM Corp. 2019
- *
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['react', 'react-dom', 'jquery', 'underscore', 'bi/glass/app/ContentView', 'bi/admin/nls/StringResource', 'ba-react-admin/ba-react-admin.min'], function (React, ReactDOM, $, _, ContentView, StringResource, AdminReact) {
- var NamespaceNavigatorPane = ContentView.extend({
- init: function init(options) {
- NamespaceNavigatorPane.inherited('init', this, arguments);
- _.extend(this, options);
- },
- getTitle: function getTitle() {
- return StringResource.get('accountList_fullperspective');
- },
- getIcon: function getIcon() {
- return 'user_32_v6';
- },
- setFocus: function setFocus() {},
- render: function render() {
- var nsNavView = React.createElement(AdminReact.NamespaceNavigatorView, {
- glassContext: this.glassContext,
- parent: this
- });
- ReactDOM.render(nsNavView, this.$el[0]);
- return Promise.resolve();
- },
- remove: function remove() {
- NamespaceNavigatorPane.inherited('remove', this, arguments);
- ReactDOM.unmountComponentAtNode(this.$el[0]);
- }
- });
- return NamespaceNavigatorPane;
- });
|