From 04010af44000f303ce37bd623fc00f7629210e40 Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Mon, 24 Apr 2017 16:40:18 +0200 Subject: [PATCH] F #5103 Done host affinity configurable (#275) --- .../public/app/tabs/vmgroup-tab/utils/role-tab.js | 4 +++- .../public/app/tabs/vmgroup-tab/utils/role-tab/html.hbs | 8 +++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab.js b/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab.js index 6bfe0dbb66..6b13ccf29f 100644 --- a/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab.js +++ b/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab.js @@ -18,6 +18,7 @@ define(function(require) { // Dependencies var Locale = require('utils/locale'); var Tips = require('utils/tips'); + var Config = require('sunstone-config'); var TemplateHTML = require('hbs!./role-tab/html'); var HostsTable = require('./datatable'); @@ -63,7 +64,8 @@ define(function(require) { 'value_host_affinity': "value_host_affinity_"+this.html_role_id, 'tf_btn_host_affined': "btn_host_vm_roles_affined"+this.html_role_id, 'tf_btn_host_anti_affined': "btn_host_vm_roles_anti_affined"+this.html_role_id, - 'group_vm_host_roles':"group_vm_host_roles_"+this.html_role_id + 'group_vm_host_roles':"group_vm_host_roles_"+this.html_role_id, + 'hostAffinityEnabled': Config.isTabEnabled('hosts-tab') }) } diff --git a/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab/html.hbs b/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab/html.hbs index 8d27aa11c3..4f967c886b 100644 --- a/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab/html.hbs +++ b/src/sunstone/public/app/tabs/vmgroup-tab/utils/role-tab/html.hbs @@ -39,6 +39,7 @@ +{{#if hostAffinityEnabled}}
@@ -52,7 +53,6 @@
-
@@ -62,8 +62,6 @@
- -
@@ -73,7 +71,7 @@
-
- \ No newline at end of file + +{{/if}} \ No newline at end of file