2018-07-25 11:05:40 +00:00
|
|
|
- if remote_mirror.update_in_progress?
|
2022-06-13 15:09:34 +00:00
|
|
|
= render Pajamas::ButtonComponent.new(icon: 'retry',
|
|
|
|
button_options: { class: 'disabled', title: _('Updating'), data: { toggle: 'tooltip', container: 'body', qa_selector: 'updating_button' } },
|
|
|
|
icon_classes: 'spin')
|
2019-03-21 22:24:48 +00:00
|
|
|
- elsif remote_mirror.enabled?
|
2022-08-16 18:12:52 +00:00
|
|
|
= link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn btn-icon gl-button rspec-update-now-button", data: { toggle: 'tooltip', container: 'body', qa_selector: 'update_now_button' }, title: _('Update now') do
|
2020-10-22 12:08:41 +00:00
|
|
|
= sprite_icon("retry")
|