Skip to content

Commit

Permalink
Merge pull request #7589 from skateman/drop-change-passsword
Browse files Browse the repository at this point in the history
Remove the physical infra provider change password feature
  • Loading branch information
mzazrivec authored Jan 20, 2021
2 parents ef7a15e + f0006ca commit a817ef0
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 237 deletions.
9 changes: 0 additions & 9 deletions app/controllers/ems_physical_infra_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ def change_password_ems_physical_infra_path(id = nil)
"/ems_physical_infra/change_password/#{id}"
end

# This method handle view objects of page
# +/ems_physical_infra/change_password/<id>+
def change_password
assert_privileges('ems_physical_infra_edit')
@record = find_record_with_rbac(model, params[:id])
@title = _("Change Password for Physical Infrasctructure Provider '%{provider_name}'") % {:provider_name => @record.name}
@in_a_form = true # to show the page on all content frame
end

def restful?
true
end
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/mixins/ems_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,6 @@ def button
javascript_redirect(:controller => "network_router",
:action => "remove_interface_select",
:id => find_record_with_rbac(NetworkRouter, checked_or_params))
elsif params[:pressed] == 'ems_infra_change_password'
javascript_redirect(change_password_ems_physical_infra_path(checked_or_params.first))
elsif params[:pressed].ends_with?("_edit") ||
["#{pfx}_miq_request_new", "#{pfx}_clone", "#{pfx}_migrate", "#{pfx}_publish"].include?(params[:pressed]) ||
params[:pressed] == 'vm_rename' && @flash_array.nil?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ class ApplicationHelper::Toolbar::EmsPhysicalInfraCenter < ApplicationHelper::To
t = N_('Authentication'),
t,
:items => [
button(
:ems_infra_change_password,
'pficon pficon-edit fa-lg',
t = N_('Change password'),
t
),
button(
:ems_physical_infra_recheck_auth_status,
'fa fa-search fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ class ApplicationHelper::Toolbar::EmsPhysicalInfrasCenter < ApplicationHelper::T
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_infra_change_password,
'pficon pficon-edit fa-lg',
N_('Select a single Infrastructure Provider to Change password'),
N_('Change Password'),
:send_checked => true,
:enabled => false,
:onwhen => "1"
),
button(
:ems_physical_infra_recheck_auth_status,
'fa fa-search fa-lg',
Expand Down
1 change: 0 additions & 1 deletion app/javascript/oldjs/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ require('./pf_charts/pie-chart.component.js');
require('./pf_charts/sparkline-chart.component.js');
require('./pf_charts/trends-chart.component.js');
require('./pf_charts/utilization-trend-chart.component.js');
require('./physical_infrastructures/change-password.js');
require('./provider-option-field-input.js');
require('./provier-option-section.js');
require('./recent-resource.js');
Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions app/views/ems_physical_infra/change_password.html.haml

This file was deleted.

55 changes: 0 additions & 55 deletions app/views/static/ems_physical_infra/change_password.html.haml

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,6 @@
show
show_list
tagging_edit
change_password
),
:post => %w(
new
Expand Down

This file was deleted.

0 comments on commit a817ef0

Please sign in to comment.