Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
e8929d9b
Commit
e8929d9b
authored
Oct 11, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve task descriptions
parent
aeacfe40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
30 deletions
+24
-30
Utils.js
www/manager/Utils.js
+24
-30
No files found.
www/manager/Utils.js
View file @
e8929d9b
...
...
@@ -366,40 +366,34 @@ Ext.define('PVE.Utils', { statics: {
}
},
format_task_description
:
function
(
type
,
id
)
{
if
(
type
==
'
vncproxy
'
)
{
return
"
VNC connection to VM/CT
"
+
id
;
}
if
(
type
==
'
vncshell
'
)
{
return
"
VNC shell
"
;
}
if
(
type
==
'
qmigrate
'
)
{
return
"
Migrate VM
"
+
id
;
}
if
(
type
==
'
vzcreate
'
)
{
return
"
Create CT
"
+
id
;
}
if
(
type
==
'
vzdestroy
'
)
{
return
"
Destroy CT
"
+
id
;
}
if
(
type
==
'
vzstart
'
)
{
return
"
Start CT
"
+
id
;
}
task_desc_table
:
{
vncproxy
:
'
VNC connection to VM/CT {0}
'
,
vncshell
:
'
VNC shell
'
,
qmigrate
:
'
Migrate VM {0}
'
,
qmstart
:
'
Start VM {0}
'
,
qmstop
:
'
Stop VM {0}
'
,
qmreset
:
'
Reset VM {0}
'
,
qmshutdown
:
'
Shutdown VM {0}
'
,
qmsuspend
:
'
Suspend VM {0}
'
,
qmresume
:
'
Resume VM {0}
'
,
vzcreate
:
'
Create CT {0}
'
,
vzdestroy
:
'
Destroy CT {0}
'
,
vzstart
:
'
Start CT {0}
'
,
vzstop
:
'
Stop CT {0}
'
,
srvstart
:
'
Start service {0}
'
,
srvstop
:
'
Stop service {0}
'
,
srvrestart
:
'
Restart service {0}
'
,
srvreload
:
'
Reload service {0}
'
},
if
(
type
==
'
vzstop
'
)
{
return
"
Stop CT
"
+
id
;
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
)
{
var
task
=
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment