Allow to provide a title and a message for the delete modal dialog.

This commit is contained in:
Pavel Mironchik
2021-01-03 15:46:25 +06:00
parent 69eb8d53e3
commit 6a77ae243f
2 changed files with 9 additions and 3 deletions

View File

@ -96,10 +96,10 @@
@can($permissionDocumentDelete)
@if ($checkButtonReconciled)
@if (!$document->reconciled)
{!! Form::deleteLink($document, $routeButtonDelete) !!}
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal) !!}
@endif
@else
{!! Form::deleteLink($document, $routeButtonDelete) !!}
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal) !!}
@endif
@endcan
@endif