Skip to content

Commit

Permalink
Add Rename selected/this VM button to toolbar for VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
hstastna committed Aug 13, 2018
1 parent e2bd0a9 commit 13114ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/helpers/application_helper/toolbar/vm_infras_center.rb
Expand Up @@ -57,6 +57,16 @@ class ApplicationHelper::Toolbar::VmInfrasCenter < ApplicationHelper::Toolbar::B
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:vm_rename,
'pficon pficon-edit fa-lg',
N_('Select a single item to rename'),
N_('Rename selected item'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"
),
button(
:vm_ownership,
'pficon pficon-user fa-lg',
Expand Down
8 changes: 8 additions & 0 deletions app/helpers/application_helper/toolbar/x_vm_center.rb
Expand Up @@ -34,6 +34,14 @@ class ApplicationHelper::Toolbar::XVmCenter < ApplicationHelper::Toolbar::Basic
'pficon pficon-edit fa-lg',
t = N_('Edit this VM'),
t),
button(
:vm_rename,
'pficon pficon-edit fa-lg',
t = N_('Rename this VM'),
t,
:klass => ApplicationHelper::Button::GenericFeatureButtonWithDisable,
:options => {:feature => :rename}
),
button(
:vm_ownership,
'pficon pficon-user fa-lg',
Expand Down

0 comments on commit 13114ef

Please sign in to comment.