1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2151: Remove role vm action (chown, chirp, deploy, migrate, migrate_live)

(cherry picked from commit ebb46f8d064432c8033b939fd6cc023054d13d39)
This commit is contained in:
Daniel Molina 2013-07-22 17:06:37 +02:00
parent 545b132c33
commit b196b48785
5 changed files with 42 additions and 62 deletions

View File

@ -373,11 +373,6 @@ tabs:
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: true
RoleVM.chown: true
RoleVM.chgrp: true
RoleVM.deploy: true
RoleVM.migrate: true
RoleVM.migrate_live: true
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: true

View File

@ -374,11 +374,6 @@ tabs:
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: true
RoleVM.chown: false
RoleVM.chgrp: false
RoleVM.deploy: false
RoleVM.migrate: false
RoleVM.migrate_live: false
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: true

View File

@ -375,11 +375,6 @@ tabs:
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: true
RoleVM.chown: false
RoleVM.chgrp: false
RoleVM.deploy: false
RoleVM.migrate: false
RoleVM.migrate_live: false
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: true

View File

@ -376,11 +376,6 @@ tabs:
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: true
RoleVM.chown: false
RoleVM.chgrp: false
RoleVM.deploy: false
RoleVM.migrate: false
RoleVM.migrate_live: false
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: true

View File

@ -768,48 +768,48 @@ var role_buttons = {
var role_vm_buttons = {
"RoleVM.chown" : {
type: "confirm_with_select",
text: tr("Change owner"),
select: users_sel,
layout: "user_select",
tip: tr("Select the new owner")+":",
condition: mustBeAdmin
},
"RoleVM.chgrp" : {
type: "confirm_with_select",
text: tr("Change group"),
select: groups_sel,
layout: "user_select",
tip: tr("Select the new group")+":",
condition: mustBeAdmin
},
"RoleVM.deploy" : {
type: "confirm_with_select",
text: tr("Deploy"),
tip: tr("This will deploy the selected VMs on the chosen host"),
layout: "vmsplanification_buttons",
select: hosts_sel,
condition: mustBeAdmin
},
"RoleVM.migrate" : {
type: "confirm_with_select",
text: tr("Migrate"),
tip: tr("This will migrate the selected VMs to the chosen host"),
layout: "vmsplanification_buttons",
select: hosts_sel,
condition: mustBeAdmin
},
"RoleVM.migrate_live" : {
type: "confirm_with_select",
text: tr("Migrate") + ' <span class="label secondary radius">live</span>',
tip: tr("This will live-migrate the selected VMs to the chosen host"),
layout: "vmsplanification_buttons",
select: hosts_sel,
condition: mustBeAdmin
},
// "RoleVM.chown" : {
// type: "confirm_with_select",
// text: tr("Change owner"),
// select: users_sel,
// layout: "user_select",
// tip: tr("Select the new owner")+":",
// condition: mustBeAdmin
// },
//
// "RoleVM.chgrp" : {
// type: "confirm_with_select",
// text: tr("Change group"),
// select: groups_sel,
// layout: "user_select",
// tip: tr("Select the new group")+":",
// condition: mustBeAdmin
// },
// "RoleVM.deploy" : {
// type: "confirm_with_select",
// text: tr("Deploy"),
// tip: tr("This will deploy the selected VMs on the chosen host"),
// layout: "vmsplanification_buttons",
// select: hosts_sel,
// condition: mustBeAdmin
// },
// "RoleVM.migrate" : {
// type: "confirm_with_select",
// text: tr("Migrate"),
// tip: tr("This will migrate the selected VMs to the chosen host"),
// layout: "vmsplanification_buttons",
// select: hosts_sel,
// condition: mustBeAdmin
//
// },
// "RoleVM.migrate_live" : {
// type: "confirm_with_select",
// text: tr("Migrate") + ' <span class="label secondary radius">live</span>',
// tip: tr("This will live-migrate the selected VMs to the chosen host"),
// layout: "vmsplanification_buttons",
// select: hosts_sel,
// condition: mustBeAdmin
// },
"RoleVM.hold" : {
type: "action",
text: tr("Hold"),