Skip to content

Commit

Permalink
Add Refresh button to the service view page
Browse files Browse the repository at this point in the history
  • Loading branch information
putmanoj committed Oct 17, 2024
1 parent 569643d commit 5e664b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/helpers/application_helper/toolbar/service_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ class ApplicationHelper::Toolbar::ServiceCenter < ApplicationHelper::Toolbar::Ba
]
),
])
button_group('service_refresh', [
button(
:service_view,
'fa fa-refresh fa-lg',
N_('Refresh this page'),
N_('Refresh'),
# needs the function because reload can't be called with different this
:data => { 'function' => 'function() { window.location.reload(); }' }
)
])
end

0 comments on commit 5e664b0

Please sign in to comment.