[pve-devel] latest pve-manager does not work anymore

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Thu Jun 13 13:56:16 CEST 2013


Hi List,

i updated to latest PVE manager (39a67abca36909bf66a0636c8b10f210a17e03d4).

Since then i only get:
[13:54:37.511] TypeError: stateinit is undefined

pointing to this line:
	    if(stateinit.timeframe){

context:
Ext.define('PVE.panel.RRDView', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.pveRRDView',

    initComponent : function() {
	var me = this;

	if (!me.datasource) {
	    throw "no datasource specified";
	}

	if (!me.rrdurl) {
	    throw "no rrdurl specified";
	}

	var stateid = 'pveRRDTypeSelection';
	var sp = Ext.state.Manager.getProvider();
	var stateinit = sp.get(stateid);

	if (!me.timeframe) {
	    if(stateinit.timeframe){
		me.timeframe = stateinit.timeframe;
	    }else{
		me.timeframe = 'hour';
	    }
	}

	if (!me.rrdcffn) {
	    if(stateinit.rrdcffn){
		me.rrdcffn = stateinit.cf;
	    }else{
		me.rrdcffn = 'AVERAGE';
	    }
	}

Stefan



More information about the pve-devel mailing list