Skip to content

Commit

Permalink
remove copy and paste button for automation simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-samuel committed Nov 11, 2024
1 parent 3fada58 commit 079d068
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
class ApplicationHelper::Toolbar::MiqAeToolsSimulateCenter < ApplicationHelper::Toolbar::Basic
button_group('miq_ae_tools_vmdb', [
button(
:ae_copy_simulate,
'fa fa-files-o fa-lg',
N_('Copy object details for use in a Button'),
N_('Copy'),
:url => "resolve",
:url_parms => "?button=copy",
:klass => ApplicationHelper::Button::AeCopySimulate),
])
end
21 changes: 0 additions & 21 deletions app/views/shared/buttons/_ab_form.html.haml
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
#ab_form
#policy_bar
- if session[:resolve_object].present?
- copied_target_class = session[:resolve_object][:new][:target_class]
- current_target_class = @edit[:new][:target_class]
- if copied_target_class == current_target_class
= link_to({:action => "resolve", :button => "paste"},
"data-miq_sparkle_on" => true,
"data-miq_sparkle_off" => true,
:remote => true,
"data-method" => :post,
:class => 'btn btn-default',
:title => _("Paste object details for use in a Button.")) do
%i.fa.fa-clipboard
- else
%button.btn.btn-default.disabled{:title => _("Paste is not available, target class differs from the target class of the object copied from the Simulation screen")}
%i.fa.fa-clipboard
- else
%button.btn.btn-default.disabled{:title => _("Paste is not available, no object information has been copied from the Simulation screen")}
%i.fa.fa-clipboard
= render :partial => "layouts/flash_msg"

#custom_button_tabs
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header('ab_options_tab', @sb[:active_tab]) do
Expand Down
30 changes: 0 additions & 30 deletions spec/views/shared/buttons/_ab_form.html.haml_spec.rb

This file was deleted.

0 comments on commit 079d068

Please sign in to comment.