mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-27 10:03:55 +00:00
remove unnecessary formatter
This commit is contained in:
parent
f97a2a34ee
commit
590d00bf20
20
Utils.js
20
Utils.js
@ -158,26 +158,6 @@ Ext.define('Proxmox.Utils', { utilities: {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
format_duration_short: function(ut) {
|
|
||||||
|
|
||||||
if (ut < 60) {
|
|
||||||
return ut.toString() + 's';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ut < 3600) {
|
|
||||||
var mins = ut / 60;
|
|
||||||
return mins.toFixed(0) + 'm';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ut < 86400) {
|
|
||||||
var hours = ut / 3600;
|
|
||||||
return hours.toFixed(0) + 'h';
|
|
||||||
}
|
|
||||||
|
|
||||||
var days = ut / 86400;
|
|
||||||
return days.toFixed(0) + 'd';
|
|
||||||
},
|
|
||||||
|
|
||||||
format_subscription_level: function(level) {
|
format_subscription_level: function(level) {
|
||||||
if (level === 'c') {
|
if (level === 'c') {
|
||||||
return 'Community';
|
return 'Community';
|
||||||
|
Loading…
Reference in New Issue
Block a user