-
Notifications
You must be signed in to change notification settings - Fork 357
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
Disable delete button for the active snapshot on oVirt #1628
Disable delete button for the active snapshot on oVirt #1628
Conversation
@martinpovolny can you please review? |
please note specs are failing because the PR this one depends on is not merged yet. |
@mzazrivec can you please review? |
@miq-bot remove_label "pending core" |
@borod108 Cannot remove the following label because they are not recognized: "pending core" |
@romanblanco, @PanSpagetka : please, review and ping me if all is ok |
@@ -310,7 +310,7 @@ class ApplicationHelper::Toolbar::XVmCenter < ApplicationHelper::Toolbar::Basic | |||
:confirm => N_("The selected snapshot will be permanently deleted. Are you sure you want to delete the selected snapshot?"), | |||
:url_parms => "main_div", | |||
:onwhen => "1", | |||
:klass => ApplicationHelper::Button::GenericFeatureButtonWithDisable, | |||
:klass => ApplicationHelper::Button::VmSnapshotRemoveOne, | |||
:options => {:feature => :remove_snapshot}), |
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.
@romanblanco Is :options
here needed when we use a specific button class rather than GenericFeatureButtonWithDisable
?
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.
@mzazrivec @borod108 the :option
is in this case useless. The feature is hardcoded in the button code (https://github.com/ManageIQ/manageiq-ui-classic/pull/1628/files#diff-533cf50bb9cc5f712939b84bbbc9a0a1R7)
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.
@borod108 Can you please remove the :options
parameter here?
I'm not able to get to the snapshots, is this working for you? @mzazrivec @borod108 |
abdaf28
to
0b3b082
Compare
@romanblanco snapshots work for me. you need to be connected to RHV 4 and above to use snapshots, could that be the problem? @miq-bot add_label wip |
Disable the delete button when the active snapshot is selected for a vm on oVirt. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1443411
0b3b082
to
fc818e9
Compare
@miq-bot remove-label wip Validated, it works. |
Checked commit borod108@fc818e9 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@mzazrivec removed the options, tnx. |
looks good. |
…tton Disable delete button for the active snapshot on oVirt (cherry picked from commit 2811730) https://bugzilla.redhat.com/show_bug.cgi?id=1480377
Fine backport details:
|
Disable the delete button when the active snapshot is selected
for a vm on oVirt.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1443411
Depends on: ManageIQ/manageiq-providers-ovirt#54