Skip to content

Commit 7183db6

Browse files
GilbertCherrieliu-samuel
authored andcommitted
Hide policy simulation button
1 parent 8aac85d commit 7183db6

10 files changed

+80
-70
lines changed

app/helpers/application_helper/toolbar/miq_templates_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ class ApplicationHelper::Toolbar::MiqTemplatesCenter < ApplicationHelper::Toolba
7777
:send_checked => true,
7878
:enabled => false,
7979
:onwhen => "1+"),
80-
button(
81-
:miq_template_policy_sim,
82-
'fa fa-play-circle-o fa-lg',
83-
N_('View Policy Simulation for the selected Templates'),
84-
N_('Policy Simulation'),
85-
:url_parms => "main_div",
86-
:send_checked => true,
87-
:enabled => false,
88-
:onwhen => "1+"),
80+
# TODO: Add this button back when the page is fixed
81+
# button(
82+
# :miq_template_policy_sim,
83+
# 'fa fa-play-circle-o fa-lg',
84+
# N_('View Policy Simulation for the selected Templates'),
85+
# N_('Policy Simulation'),
86+
# :url_parms => "main_div",
87+
# :send_checked => true,
88+
# :enabled => false,
89+
# :onwhen => "1+"),
8990
button(
9091
:miq_template_tag,
9192
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/template_clouds_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,16 @@ class ApplicationHelper::Toolbar::TemplateCloudsCenter < ApplicationHelper::Tool
107107
:send_checked => true,
108108
:enabled => false,
109109
:onwhen => "1+"),
110-
button(
111-
:image_policy_sim,
112-
'fa fa-play-circle-o fa-lg',
113-
N_('View Policy Simulation for the selected items'),
114-
N_('Policy Simulation'),
115-
:url_parms => "main_div",
116-
:send_checked => true,
117-
:enabled => false,
118-
:onwhen => "1+"),
110+
# TODO: Add this button back when the page is fixed
111+
# button(
112+
# :image_policy_sim,
113+
# 'fa fa-play-circle-o fa-lg',
114+
# N_('View Policy Simulation for the selected items'),
115+
# N_('Policy Simulation'),
116+
# :url_parms => "main_div",
117+
# :send_checked => true,
118+
# :enabled => false,
119+
# :onwhen => "1+"),
119120
button(
120121
:image_tag,
121122
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/template_infras_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@ class ApplicationHelper::Toolbar::TemplateInfrasCenter < ApplicationHelper::Tool
8787
:send_checked => true,
8888
:enabled => false,
8989
:onwhen => "1+"),
90-
button(
91-
:miq_template_policy_sim,
92-
'fa fa-play-circle-o fa-lg',
93-
N_('View Policy Simulation for the selected Templates'),
94-
N_('Policy Simulation'),
95-
:url_parms => "main_div",
96-
:send_checked => true,
97-
:enabled => false,
98-
:onwhen => "1+"),
90+
# TODO: Add this button back when the page is fixed
91+
# button(
92+
# :miq_template_policy_sim,
93+
# 'fa fa-play-circle-o fa-lg',
94+
# N_('View Policy Simulation for the selected Templates'),
95+
# N_('Policy Simulation'),
96+
# :url_parms => "main_div",
97+
# :send_checked => true,
98+
# :enabled => false,
99+
# :onwhen => "1+"),
99100
button(
100101
:miq_template_tag,
101102
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/vm_clouds_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,16 @@ class ApplicationHelper::Toolbar::VmCloudsCenter < ApplicationHelper::Toolbar::B
9696
:send_checked => true,
9797
:enabled => false,
9898
:onwhen => "1+"),
99-
button(
100-
:instance_policy_sim,
101-
'fa fa-play-circle-o fa-lg',
102-
N_('View Policy Simulation for the selected items'),
103-
N_('Policy Simulation'),
104-
:url_parms => "main_div",
105-
:send_checked => true,
106-
:enabled => false,
107-
:onwhen => "1+"),
99+
# TODO: Add this button back when the page is fixed
100+
# button(
101+
# :instance_policy_sim,
102+
# 'fa fa-play-circle-o fa-lg',
103+
# N_('View Policy Simulation for the selected items'),
104+
# N_('Policy Simulation'),
105+
# :url_parms => "main_div",
106+
# :send_checked => true,
107+
# :enabled => false,
108+
# :onwhen => "1+"),
108109
button(
109110
:instance_tag,
110111
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/vm_infras_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,16 @@ class ApplicationHelper::Toolbar::VmInfrasCenter < ApplicationHelper::Toolbar::B
124124
:send_checked => true,
125125
:enabled => false,
126126
:onwhen => "1+"),
127-
button(
128-
:vm_policy_sim,
129-
'fa fa-play-circle-o fa-lg',
130-
N_('View Policy Simulation for the selected items'),
131-
N_('Policy Simulation'),
132-
:url_parms => "main_div",
133-
:send_checked => true,
134-
:enabled => false,
135-
:onwhen => "1+"),
127+
# TODO: Add this button back when the page is fixed
128+
# button(
129+
# :vm_policy_sim,
130+
# 'fa fa-play-circle-o fa-lg',
131+
# N_('View Policy Simulation for the selected items'),
132+
# N_('Policy Simulation'),
133+
# :url_parms => "main_div",
134+
# :send_checked => true,
135+
# :enabled => false,
136+
# :onwhen => "1+"),
136137
button(
137138
:vm_tag,
138139
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/vms_center.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,16 @@ class ApplicationHelper::Toolbar::VmsCenter < ApplicationHelper::Toolbar::Basic
7575
:send_checked => true,
7676
:enabled => false,
7777
:onwhen => "1+"),
78-
button(
79-
:vm_policy_sim,
80-
'fa fa-play-circle-o fa-lg',
81-
N_('View Policy Simulation for the selected items'),
82-
N_('Policy Simulation'),
83-
:url_parms => "main_div",
84-
:send_checked => true,
85-
:enabled => false,
86-
:onwhen => "1+"),
78+
# TODO: Add this button back when the page is fixed
79+
# button(
80+
# :vm_policy_sim,
81+
# 'fa fa-play-circle-o fa-lg',
82+
# N_('View Policy Simulation for the selected items'),
83+
# N_('Policy Simulation'),
84+
# :url_parms => "main_div",
85+
# :send_checked => true,
86+
# :enabled => false,
87+
# :onwhen => "1+"),
8788
button(
8889
:vm_tag,
8990
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/x_miq_template_center.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class ApplicationHelper::Toolbar::XMiqTemplateCenter < ApplicationHelper::Toolba
5454
N_('Manage Policies for this Template'),
5555
N_('Manage Policies'),
5656
:klass => ApplicationHelper::Button::VmTemplatePolicy),
57+
# TODO: Add this button back when the page is fixed
5758
button(
5859
:miq_template_policy_sim,
5960
'fa fa-play-circle-o fa-lg',

app/helpers/application_helper/toolbar/x_template_cloud_center.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ class ApplicationHelper::Toolbar::XTemplateCloudCenter < ApplicationHelper::Tool
7171
'pficon pficon-edit fa-lg',
7272
N_('Manage Policies for this Image'),
7373
N_('Manage Policies')),
74-
button(
75-
:image_policy_sim,
76-
'fa fa-play-circle-o fa-lg',
77-
N_('View Policy Simulation for this Image'),
78-
N_('Policy Simulation')),
74+
# TODO: Add this button back when the page is fixed
75+
# button(
76+
# :image_policy_sim,
77+
# 'fa fa-play-circle-o fa-lg',
78+
# N_('View Policy Simulation for this Image'),
79+
# N_('Policy Simulation')),
7980
button(
8081
:image_tag,
8182
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/x_vm_center.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ class ApplicationHelper::Toolbar::XVmCenter < ApplicationHelper::Toolbar::Basic
103103
N_('Manage Policies for this VM'),
104104
N_('Manage Policies'),
105105
:klass => ApplicationHelper::Button::VmTemplatePolicy),
106-
button(
107-
:vm_policy_sim,
108-
'fa fa-play-circle-o fa-lg',
109-
N_('View Policy Simulation for this VM'),
110-
N_('Policy Simulation'),
111-
:klass => ApplicationHelper::Button::VmTemplatePolicy),
106+
# TODO: Add this button back when the page is fixed
107+
# button(
108+
# :vm_policy_sim,
109+
# 'fa fa-play-circle-o fa-lg',
110+
# N_('View Policy Simulation for this VM'),
111+
# N_('Policy Simulation'),
112+
# :klass => ApplicationHelper::Button::VmTemplatePolicy),
112113
button(
113114
:vm_tag,
114115
'pficon pficon-edit fa-lg',

app/helpers/application_helper/toolbar/x_vm_cloud_center.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ class ApplicationHelper::Toolbar::XVmCloudCenter < ApplicationHelper::Toolbar::B
129129
'pficon pficon-edit fa-lg',
130130
N_('Manage Policies for this Instance'),
131131
N_('Manage Policies')),
132-
button(
133-
:instance_policy_sim,
134-
'fa fa-play-circle-o fa-lg',
135-
N_('View Policy Simulation for this Instance'),
136-
N_('Policy Simulation')),
132+
# TODO: Add this button back when the page is fixed
133+
# button(
134+
# :instance_policy_sim,
135+
# 'fa fa-play-circle-o fa-lg',
136+
# N_('View Policy Simulation for this Instance'),
137+
# N_('Policy Simulation')),
137138
button(
138139
:instance_tag,
139140
'pficon pficon-edit fa-lg',

0 commit comments

Comments
 (0)