IGNITE-7168 Remove remains of web agent download feature from web-console-header.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/30027df1 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/30027df1 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/30027df1 Branch: refs/heads/ignite-zk Commit: 30027df10965c82ffdb14fbb815ae7ab6b6e287b Parents: 204cd59 Author: Ilya Borisov <[email protected]> Authored: Wed Dec 27 10:58:37 2017 +0700 Committer: Andrey Novikov <[email protected]> Committed: Wed Dec 27 10:58:37 2017 +0700 ---------------------------------------------------------------------- .../app/components/web-console-header/component.js | 13 ------------- 1 file changed, 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/30027df1/modules/web-console/frontend/app/components/web-console-header/component.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/components/web-console-header/component.js b/modules/web-console/frontend/app/components/web-console-header/component.js index fbdbcfc..3b1f2f2 100644 --- a/modules/web-console/frontend/app/components/web-console-header/component.js +++ b/modules/web-console/frontend/app/components/web-console-header/component.js @@ -23,12 +23,6 @@ export default { controller: class { static $inject = ['$rootScope', '$scope', '$state', 'IgniteBranding', 'UserNotifications']; - static webAgentDownloadVisibleStates = [ - 'base.configuration', - 'base.sql', - 'base.settings' - ]; - static connectedClustersUnvisibleStates = [ '403', '404' ]; @@ -37,21 +31,14 @@ export default { Object.assign(this, {$rootScope, $scope, $state, branding, UserNotifications}); } - setWebAgentDownloadVisible() { - this.isWebAgentDownloadVisible = - this.constructor.webAgentDownloadVisibleStates.some((state) => this.$state.includes(state)); - } - setConnectedClustersVisible() { this.isConnectedClustersVisible = !this.constructor.connectedClustersUnvisibleStates.some((state) => this.$state.includes(state)); } $onInit() { - this.setWebAgentDownloadVisible(); this.setConnectedClustersVisible(); - this.$scope.$on('$stateChangeSuccess', () => this.setWebAgentDownloadVisible()); this.$scope.$on('$stateChangeSuccess', () => this.setConnectedClustersVisible()); } },
