ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: Web Console: minor refactoring.
Date Thu, 21 Sep 2017 14:14:05 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 07f5b0cec -> abe4ee8ff


Web Console: minor refactoring.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/abe4ee8f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/abe4ee8f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/abe4ee8f

Branch: refs/heads/master
Commit: abe4ee8ff6f61ccb523dbb4b6821687302c14952
Parents: 07f5b0c
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Thu Sep 21 21:13:59 2017 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Thu Sep 21 21:13:59 2017 +0700

----------------------------------------------------------------------
 .../frontend/app/modules/agent/AgentManager.service.js       | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/abe4ee8f/modules/web-console/frontend/app/modules/agent/AgentManager.service.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/agent/AgentManager.service.js b/modules/web-console/frontend/app/modules/agent/AgentManager.service.js
index 7c84edc..9a736b6 100644
--- a/modules/web-console/frontend/app/modules/agent/AgentManager.service.js
+++ b/modules/web-console/frontend/app/modules/agent/AgentManager.service.js
@@ -101,7 +101,7 @@ export default class IgniteAgentManager {
 
         this.clusterVersion = '2.1.0';
 
-        if (!$root.IgniteDemoMode) {
+        if (!this.isDemoMode()) {
             this.connectionSbj.subscribe({
                 next: ({cluster}) => {
                     const version = _.get(cluster, 'clusterVersion');
@@ -115,6 +115,10 @@ export default class IgniteAgentManager {
         }
     }
 
+    isDemoMode() {
+        return this.$root.IgniteDemoMode;
+    }
+
     available(sinceVersion) {
         return this.Version.since(this.clusterVersion, sinceVersion);
     }
@@ -141,7 +145,7 @@ export default class IgniteAgentManager {
         self.socket.on('agents:stat', ({clusters, count}) => {
             const conn = self.connectionSbj.getValue();
 
-            conn.update(self.$root.IgniteDemoMode, count, clusters);
+            conn.update(self.isDemoMode(), count, clusters);
 
             self.connectionSbj.next(conn);
         });


Mime
View raw message