7 lines
307 B
Text
7 lines
307 B
Text
- icon = local_assigns[:icon]
|
|
- category = local_assigns[:category] || :primary
|
|
|
|
.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')
|