diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js index 1616bd57..c3769257 100644 --- a/www/datastore/Summary.js +++ b/www/datastore/Summary.js @@ -234,6 +234,8 @@ Ext.define('PBS.DataStoreSummary', { }, { xtype: 'proxmoxRRDChart', + itemId: 'ioDelayChart', + hidden: true, title: gettext('IO Delay (ms)'), fields: ['io_delay'], fieldTitles: [gettext('IO Delay')], @@ -288,6 +290,10 @@ Ext.define('PBS.DataStoreSummary', { }, }); + me.mon(me.rrdstore, 'load', function(store, records, success) { + me.down('#ioDelayChart').setVisible(!success || records[0]?.data?.io_ticks !== undefined); + }, undefined, { single: true }); + me.query('proxmoxRRDChart').forEach((chart) => { chart.setStore(me.rrdstore); });