diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 5e9c39ed..aafe359a 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -1099,6 +1099,18 @@ Ext.define('PVE.Utils', { return Ext.Date.format(new Date(value * 1000), 'l d F Y H:i:s'); }, + // render a timestamp or pending + render_next_event: function(value) { + if (!value) { + return '-'; + } + let now = new Date(), next = new Date(value * 1000); + if (next < now) { + return gettext('pending'); + } + return Proxmox.Utils.render_timestamp(value); + }, + calculate_mem_usage: function(data) { if (!Ext.isNumeric(data.mem) || data.maxmem === 0 ||