Skip to content

Commit

Permalink
Merge pull request #15 from Laravel-Backpack/use-button-classes-for-p…
Browse files Browse the repository at this point in the history
…roper-display

fix button classes in revert modal
  • Loading branch information
pxpm authored Apr 11, 2024
2 parents 613e076 + 4823ffe commit 54b11f7
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions resources/views/buttons/revert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,22 @@ function revertEntry(button) {
title: trans.warning,
text: trans.revert_confirm,
icon: 'warning',
buttons: [trans.cancel, trans.revert],
dangerMode: true,
buttons: {
cancel: {
text: trans.cancel,
value: null,
visible: true,
className: "bg-secondary",
closeModal: true,
},
delete: {
text: trans.revert,
value: true,
visible: true,
className: "bg-danger",
},
},
dangerMode: true,
}).then((value) => {
if (! value) return;
Expand Down

0 comments on commit 54b11f7

Please sign in to comment.