Skip to content

Commit 7a65c3e

Browse files
committed
Add Refresh button to the service view page
1 parent c86f254 commit 7a65c3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/helpers/application_helper/toolbar/service_center.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ class ApplicationHelper::Toolbar::ServiceCenter < ApplicationHelper::Toolbar::Ba
8888
]
8989
),
9090
])
91+
button_group('service_refresh', [
92+
button(
93+
:service_view,
94+
'fa fa-refresh fa-lg',
95+
N_('Refresh this page'),
96+
N_('Refresh'),
97+
# needs the function because reload can't be called with different this
98+
:data => { 'function' => 'function() { window.location.reload(); }' }
99+
)
100+
])
91101
end

0 commit comments

Comments
 (0)