From cccffde4a6dc54d5f8aceefe7101d5df33c10e71 Mon Sep 17 00:00:00 2001 From: juanmont Date: Sun, 30 Oct 2016 12:04:34 +0100 Subject: [PATCH] F #4826: Confirm all vms actions - new tag 'confirm_vms' in .yalm files - change in users: cloud, admin and groupadmin --- src/sunstone/etc/sunstone-views/admin.yaml | 1 + src/sunstone/etc/sunstone-views/cloud.yaml | 1 + src/sunstone/etc/sunstone-views/groupadmin.yaml | 1 + src/sunstone/public/app/sunstone-config.js | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/src/sunstone/etc/sunstone-views/admin.yaml b/src/sunstone/etc/sunstone-views/admin.yaml index fbb43d0725..c7841aa65a 100644 --- a/src/sunstone/etc/sunstone-views/admin.yaml +++ b/src/sunstone/etc/sunstone-views/admin.yaml @@ -1,5 +1,6 @@ small_logo: images/opennebula-5.0.png provision_logo: images/opennebula-5.0.png +confirm_vms: true enabled_tabs: - dashboard-tab - instances-top-tab diff --git a/src/sunstone/etc/sunstone-views/cloud.yaml b/src/sunstone/etc/sunstone-views/cloud.yaml index 00c5133b29..7201d6b9e9 100644 --- a/src/sunstone/etc/sunstone-views/cloud.yaml +++ b/src/sunstone/etc/sunstone-views/cloud.yaml @@ -1,4 +1,5 @@ provision_logo: images/opennebula-5.0.png +confirm_vms: true enabled_tabs: - provision-tab - settings-tab diff --git a/src/sunstone/etc/sunstone-views/groupadmin.yaml b/src/sunstone/etc/sunstone-views/groupadmin.yaml index c829ef12bc..144207051f 100644 --- a/src/sunstone/etc/sunstone-views/groupadmin.yaml +++ b/src/sunstone/etc/sunstone-views/groupadmin.yaml @@ -1,5 +1,6 @@ small_logo: images/opennebula-5.0.png provision_logo: images/opennebula-5.0.png +confirm_vms: true enabled_tabs: - dashboard-tab - instances-top-tab diff --git a/src/sunstone/public/app/sunstone-config.js b/src/sunstone/public/app/sunstone-config.js index d1c02c1f3e..6666a9a9e9 100644 --- a/src/sunstone/public/app/sunstone-config.js +++ b/src/sunstone/public/app/sunstone-config.js @@ -146,10 +146,15 @@ define(function(require) { 'vmLogos': (_config['vm_logos']), 'enabledTabs': _config['view']['enabled_tabs'], 'onedConf': _config['oned_conf'], + 'confirmVMActions': _config['view']['confirm_vms'], "allTabs": function() { return Object.keys(_config['view']['tabs']); } + + /*"isConfirmVmsActionsEnable": function() { + Console.Log(_config['view']['confirm_vms']); + }*/ } return Config;