ui: some more eslint auto-fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -13,7 +13,7 @@ Ext.define('pbs-datastore-statistics', {
|
||||
}
|
||||
return last;
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'usage',
|
||||
@ -25,13 +25,13 @@ Ext.define('pbs-datastore-statistics', {
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: "/api2/json/status/datastore-usage"
|
||||
url: "/api2/json/status/datastore-usage",
|
||||
},
|
||||
idProperty: 'store',
|
||||
});
|
||||
@ -57,7 +57,7 @@ Ext.define('PBS.DatastoreStatistics', {
|
||||
|
||||
let timespan = (estimate - now)/1000;
|
||||
|
||||
if (+estimate <= +now || isNaN(timespan)) {
|
||||
if (Number(estimate) <= Number(now) || isNaN(timespan)) {
|
||||
return gettext('Never');
|
||||
}
|
||||
|
||||
@ -131,8 +131,8 @@ Ext.define('PBS.DatastoreStatistics', {
|
||||
lineWidth: 0,
|
||||
chartRangeMin: 0,
|
||||
chartRangeMax: 1,
|
||||
tipTpl: '{y:number("0.00")*100}%'
|
||||
}
|
||||
tipTpl: '{y:number("0.00")*100}%',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@ -150,4 +150,4 @@ Ext.define('PBS.DatastoreStatistics', {
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
});
|
||||
|
@ -14,7 +14,6 @@ Ext.define('PBS.LongestTasks', {
|
||||
|
||||
openTask: function(record) {
|
||||
let me = this;
|
||||
let view = me.getView();
|
||||
Ext.create('Proxmox.window.TaskViewer', {
|
||||
upid: record.data.upid,
|
||||
endtime: record.data.endtime,
|
||||
@ -72,7 +71,7 @@ Ext.define('PBS.LongestTasks', {
|
||||
model: 'proxmox-tasks',
|
||||
proxy: {
|
||||
type: 'memory',
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -80,7 +80,7 @@ Ext.define('PBS.RunningTasks', {
|
||||
dataIndex: 'duration',
|
||||
renderer: function(value, md, record) {
|
||||
return Proxmox.Utils.format_duration_human((Date.now() - record.data.starttime)/1000);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'actioncolumn',
|
||||
|
@ -69,7 +69,7 @@ Ext.define('PBS.TaskSummary', {
|
||||
disableSelection: true,
|
||||
|
||||
store: {
|
||||
data: []
|
||||
data: [],
|
||||
},
|
||||
|
||||
columns: [
|
||||
@ -90,7 +90,7 @@ Ext.define('PBS.TaskSummary', {
|
||||
renderer: 'render_count',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
],
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user