-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove copy and paste button for automation simulation #9308
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you see any other usages of this class? If not, can we delete it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I searched and I think you can delete all references to AeCopySimulate: https://github.com/search?q=org%3AManageIQ%20AeCopySimulate&type=code |
||
]) | ||
end |
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"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's probably also a "resolve" action in the simulation controller that can be removed as well. Might involve some more searching though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think this is what the resolve is referring to, so I should be able to remove the copy and paste cases but not the others since they deal with the actual simulation |
||
"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 | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's nothing left in this toolbar, is it possible to delete the toolbar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried doing that, but the application was saying it expected the class definition for some reason. I was trying to find where that was happening but wasn't able to. Do you know where that might be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like
manageiq-ui-classic/app/helpers/application_helper/toolbar_builder.rb
Line 38 in 0a3bfeb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand how it gets there though - do you have a stack track when it fails when you delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no stack trace in my terminal, just this error message shows up on my UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should see a stack trace in possibly the development.log or the evm.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm i don't see anything that relates to the toolbar in the evm.log, just that it connects to the database
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then let's leave it for now