mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 08:26:08 +00:00
improve task descriptions
This commit is contained in:
parent
c661ad50d2
commit
acc0c13a84
@ -366,39 +366,33 @@ Ext.define('PVE.Utils', { statics: {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
format_task_description: function(type, id) {
|
task_desc_table: {
|
||||||
|
vncproxy: 'VNC connection to VM/CT {0}',
|
||||||
if (type == 'vncproxy') {
|
vncshell: 'VNC shell',
|
||||||
return "VNC connection to VM/CT " + id;
|
qmigrate: 'Migrate VM {0}',
|
||||||
}
|
qmstart: 'Start VM {0}',
|
||||||
|
qmstop: 'Stop VM {0}',
|
||||||
if (type == 'vncshell') {
|
qmreset: 'Reset VM {0}',
|
||||||
return "VNC shell";
|
qmshutdown: 'Shutdown VM {0}',
|
||||||
}
|
qmsuspend: 'Suspend VM {0}',
|
||||||
|
qmresume: 'Resume VM {0}',
|
||||||
if (type == 'qmigrate') {
|
vzcreate: 'Create CT {0}',
|
||||||
return "Migrate VM " + id;
|
vzdestroy: 'Destroy CT {0}',
|
||||||
}
|
vzstart: 'Start CT {0}',
|
||||||
|
vzstop: 'Stop CT {0}',
|
||||||
if (type == 'vzcreate') {
|
srvstart: 'Start service {0}',
|
||||||
return "Create CT " + id;
|
srvstop: 'Stop service {0}',
|
||||||
}
|
srvrestart: 'Restart service {0}',
|
||||||
|
srvreload: 'Reload service {0}'
|
||||||
if (type == 'vzdestroy') {
|
|
||||||
return "Destroy CT " + id;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (type == 'vzstart') {
|
|
||||||
return "Start CT " + id;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (type == 'vzstop') {
|
|
||||||
return "Stop CT " + id;
|
|
||||||
}
|
|
||||||
|
|
||||||
return type;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
format_task_description: function(type, id) {
|
||||||
|
var format = PVE.Utils.task_desc_table[type];
|
||||||
|
if (format) {
|
||||||
|
return Ext.String.format(format, id);
|
||||||
|
}
|
||||||
|
return type;
|
||||||
|
},
|
||||||
|
|
||||||
parse_task_upid: function(upid) {
|
parse_task_upid: function(upid) {
|
||||||
var task = {};
|
var task = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user