Add recover action to Sunstone

This commit is contained in:
Daniel Molina committed 2013-06-17 18:28:47 +02:00
1 parent 2afc550de4
commit 8d54500def
2 files changed
+22 -1

No files matched your search

@@ -54,6 +54,13 @@ var Service = {
null,
Service.path);
},
"recover" : function(params){
OpenNebula.Action.simple_action(params,
Service.resource,
"recover",
null,
Service.path);
},
"state" : function(state_int){
var state = [
tr("PENDING"),
@@ -585,6 +592,14 @@ var service_actions = {
error: onError,
notify: true
},
"Service.recover" : {
type: "multiple",
call: Service.recover,
elements: serviceElements,
error: onError,
notify: true
}
};
@@ -616,6 +631,11 @@ var service_buttons = {
layout: "main",
text: tr("Shutdown")
},
"Service.recover" : {
type: "action",
layout: "main",
text: tr("Recover")
},
"Service.delete" : {
type: "confirm",
text: tr("Delete"),
+2 -1
View File
@@ -123,7 +123,6 @@ add_view " apptools-appflow-services:" \
panel_tabs:
service_info_tab: true
service_roles_tab: true
service_vms_tab: true
service_log_tab: true
panel_tabs_actions:
service_roles_tab:
@@ -154,12 +153,14 @@ add_view " apptools-appflow-services:" \
Service.chgrp: true
Service.chmod: true
Service.shutdown: true
Service.recover: true
Service.delete: true"
add_view " apptools-appflow-templates:" \
" apptools-appflow-templates:
panel_tabs:
service_template_info_panel: true
service_template_roles_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID