Commit b9268e65 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

rrd : init with timeframe from state manager

avoid to init the rrd with default timeframe,
then reload with timefrom state manager

this avoid to reload twice the rrds
Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 3f2d890e
......@@ -17,6 +17,13 @@ Ext.define('PVE.panel.RRDView', {
var sp = Ext.state.Manager.getProvider();
var stateinit = sp.get(stateid);
if (stateinit) {
if(stateinit.timeframe !== me.timeframe || stateinit.cf !== me.rrdcffn){
me.timeframe = stateinit.timeframe;
me.rrdcffn = stateinit.cf;
}
}
if (!me.timeframe) {
if(stateinit && stateinit.timeframe){
me.timeframe = stateinit.timeframe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment