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
47c9c22a
Commit
47c9c22a
authored
Nov 29, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use same button order everywhere
parent
47b80718
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
47 deletions
+58
-47
VNCConsole.js
www/manager/VNCConsole.js
+54
-43
Config.js
www/manager/openvz/Config.js
+2
-2
Config.js
www/manager/qemu/Config.js
+2
-2
No files found.
www/manager/VNCConsole.js
View file @
47c9c22a
...
...
@@ -233,6 +233,18 @@ Ext.define('PVE.KVMConsole', {
vm_command
(
"
start
"
,
{},
1
);
}
},
{
text
:
gettext
(
'
Shutdown
'
),
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to shutdown VM {0}?
"
),
me
.
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
'
shutdown
'
,
{
timeout
:
30
});
});
}
},
{
text
:
gettext
(
'
Stop
'
),
handler
:
function
()
{
...
...
@@ -245,17 +257,6 @@ Ext.define('PVE.KVMConsole', {
});
}
},
{
text
:
gettext
(
'
Migrate
'
),
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
qemu
'
,
nodename
:
me
.
nodename
,
vmid
:
me
.
vmid
});
win
.
show
();
}
},
{
xtype
:
'
pveQemuSendKeyMenu
'
,
nodename
:
me
.
nodename
,
...
...
@@ -273,18 +274,6 @@ Ext.define('PVE.KVMConsole', {
});
}
},
{
text
:
gettext
(
'
Shutdown
'
),
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to shutdown VM {0}?
"
),
me
.
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
'
shutdown
'
,
{
timeout
:
30
});
});
}
},
{
text
:
gettext
(
'
Suspend
'
),
handler
:
function
()
{
...
...
@@ -303,6 +292,23 @@ Ext.define('PVE.KVMConsole', {
vm_command
(
"
resume
"
);
}
},
{
text
:
gettext
(
'
Migrate
'
),
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
qemu
'
,
nodename
:
me
.
nodename
,
vmid
:
me
.
vmid
});
win
.
show
();
}
},
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
PVE
.
Utils
.
openConoleWindow
(
'
kvm
'
,
me
.
vmid
,
me
.
nodename
,
me
.
vmname
);
}
},
'
->
'
,
{
text
:
gettext
(
'
Refresh
'
),
...
...
@@ -317,12 +323,6 @@ Ext.define('PVE.KVMConsole', {
me
.
reloadApplet
();
}
},
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
PVE
.
Utils
.
openConoleWindow
(
'
kvm
'
,
me
.
vmid
,
me
.
nodename
,
me
.
vmname
);
}
}
];
Ext
.
apply
(
me
,
{
...
...
@@ -374,29 +374,46 @@ Ext.define('PVE.OpenVZConsole', {
}
},
{
text
:
gettext
(
'
S
top
'
),
text
:
gettext
(
'
S
hutdown
'
),
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to s
top
VM {0}?
"
),
me
.
vmid
);
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to s
hutdown
VM {0}?
"
),
me
.
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
,
{
fast
:
1
}
);
vm_command
(
"
stop
"
);
});
}
},
{
text
:
gettext
(
'
S
hutdown
'
),
text
:
gettext
(
'
S
top
'
),
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to s
hutdown
VM {0}?
"
),
me
.
vmid
);
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to s
top
VM {0}?
"
),
me
.
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
);
vm_command
(
"
stop
"
,
{
fast
:
1
}
);
});
}
},
{
text
:
gettext
(
'
Migrate
'
),
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
openvz
'
,
nodename
:
me
.
nodename
,
vmid
:
me
.
vmid
});
win
.
show
();
}
},
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
PVE
.
Utils
.
openConoleWindow
(
'
openvz
'
,
me
.
vmid
,
me
.
nodename
,
me
.
vmname
);
}
},
'
->
'
,
{
text
:
gettext
(
'
Refresh
'
),
...
...
@@ -410,14 +427,8 @@ Ext.define('PVE.OpenVZConsole', {
handler
:
function
()
{
me
.
reloadApplet
();
}
},
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
PVE
.
Utils
.
openConoleWindow
(
'
openvz
'
,
me
.
vmid
,
me
.
nodename
,
me
.
vmname
);
}
}
];
}
];
Ext
.
apply
(
me
,
{
tbar
:
tbar
,
...
...
www/manager/openvz/Config.js
View file @
47c9c22a
...
...
@@ -96,8 +96,8 @@ Ext.define('PVE.openvz.Config', {
Ext
.
apply
(
me
,
{
title
:
Ext
.
String
.
format
(
gettext
(
"
Container {0} on node {1}
"
),
descr
,
"
'
"
+
nodename
+
"
'
"
),
hstateid
:
'
ovztab
'
,
tbar
:
[
startBtn
,
s
topBtn
,
shutdownBtn
,
migrat
eBtn
,
remov
eBtn
,
consoleBtn
],
tbar
:
[
startBtn
,
s
hutdownBtn
,
stopBtn
,
remov
eBtn
,
migrat
eBtn
,
consoleBtn
],
defaults
:
{
statusStore
:
me
.
statusStore
},
items
:
[
{
...
...
www/manager/qemu/Config.js
View file @
47c9c22a
...
...
@@ -104,8 +104,8 @@ Ext.define('PVE.qemu.Config', {
Ext
.
apply
(
me
,
{
title
:
Ext
.
String
.
format
(
gettext
(
"
Virtual machine {0} on node {1}
"
),
descr
,
"
'
"
+
nodename
+
"
'
"
),
hstateid
:
'
kvmtab
'
,
tbar
:
[
startBtn
,
s
topBtn
,
resetBtn
,
shutdown
Btn
,
migrateBtn
,
remov
eBtn
,
consoleBtn
],
tbar
:
[
startBtn
,
s
hutdownBtn
,
stopBtn
,
reset
Btn
,
removeBtn
,
migrat
eBtn
,
consoleBtn
],
defaults
:
{
statusStore
:
me
.
statusStore
},
items
:
[
{
...
...
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