[FLINK-5150] [webui] Store metrics in sessionStorage

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

Branch: refs/heads/release-1.2
Commit: 79b68263f52690697ceec0528023d35feed0bd89
Parents: 92e3935
Author: zentol <ches...@apache.org>
Authored: Fri Jan 13 12:05:59 2017 +0100
Committer: zentol <ches...@apache.org>
Committed: Thu Jan 19 21:41:59 2017 +0100

----------------------------------------------------------------------
 .../web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/79b68263/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
----------------------------------------------------------------------
diff --git 
a/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee 
b/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
index 20c7439..9b9fab7 100644
--- 
a/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
+++ 
b/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
@@ -66,13 +66,13 @@ angular.module('flinkApp')
     100
 
   @setupLS = ->
-    if !localStorage.flinkMetrics?
+    if !sessionStorage.flinkMetrics?
       @saveSetup()
 
-    @metrics = JSON.parse(localStorage.flinkMetrics)
+    @metrics = JSON.parse(sessionStorage.flinkMetrics)
 
   @saveSetup = ->
-    localStorage.flinkMetrics = JSON.stringify(@metrics)
+    sessionStorage.flinkMetrics = JSON.stringify(@metrics)
 
   @saveValue = (jobid, nodeid, value) ->
     unless @values[jobid]?

Reply via email to