2023-03-04 22:38:38 +05:30
|
|
|
- icon = local_assigns[:icon]
|
|
|
|
- category = local_assigns[:category] || :primary
|
2021-06-08 01:23:25 +05:30
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
.gl-p-2
|
|
|
|
= render Pajamas::ButtonComponent.new(variant: :danger, category: category, icon: ('remove' if icon), button_options: { class: 'js-confirm-modal-button', data: button_data }) do
|
|
|
|
- unless icon
|
|
|
|
= _('Delete')
|