Allow to provide a title and a message for the delete modal dialog.
This commit is contained in:
parent
69eb8d53e3
commit
6a77ae243f
@ -339,6 +339,9 @@ abstract class DocumentShow extends Component
|
|||||||
|
|
||||||
public $attachment;
|
public $attachment;
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
public $textDeleteModal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new component instance.
|
* Create a new component instance.
|
||||||
*
|
*
|
||||||
@ -366,7 +369,8 @@ abstract class DocumentShow extends Component
|
|||||||
bool $hideOrderNumber = false, bool $hideDocumentNumber = false, bool $hideIssuedAt = false, bool $hideDueAt = false,
|
bool $hideOrderNumber = false, bool $hideDocumentNumber = false, bool $hideIssuedAt = false, bool $hideDueAt = false,
|
||||||
string $textContactInfo = '', string $textDocumentNumber = '', string $textOrderNumber = '', string $textIssuedAt = '', string $textDueAt = '',
|
string $textContactInfo = '', string $textDocumentNumber = '', string $textOrderNumber = '', string $textIssuedAt = '', string $textDueAt = '',
|
||||||
bool $hideItems = false, bool $hideName = false, bool $hideDescription = false, bool $hideQuantity = false, bool $hidePrice = false, bool $hideDiscount = false, bool $hideAmount = false, bool $hideNote = false, bool $hideAttachment = false,
|
bool $hideItems = false, bool $hideName = false, bool $hideDescription = false, bool $hideQuantity = false, bool $hidePrice = false, bool $hideDiscount = false, bool $hideAmount = false, bool $hideNote = false, bool $hideAttachment = false,
|
||||||
string $textItems = '', string $textQuantity = '', string $textPrice = '', string $textAmount = '', $attachment = []
|
string $textItems = '', string $textQuantity = '', string $textPrice = '', string $textAmount = '', $attachment = [],
|
||||||
|
string $textDeleteModal = ''
|
||||||
) {
|
) {
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
$this->document = $document;
|
$this->document = $document;
|
||||||
@ -503,6 +507,8 @@ abstract class DocumentShow extends Component
|
|||||||
$this->textQuantity = $textQuantity;
|
$this->textQuantity = $textQuantity;
|
||||||
$this->textPrice = $textPrice;
|
$this->textPrice = $textPrice;
|
||||||
$this->textAmount = $textAmount;
|
$this->textAmount = $textAmount;
|
||||||
|
|
||||||
|
$this->textDeleteModal = $textDeleteModal;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextRecurringType($type, $textRecurringType)
|
protected function getTextRecurringType($type, $textRecurringType)
|
||||||
|
@ -96,10 +96,10 @@
|
|||||||
@can($permissionDocumentDelete)
|
@can($permissionDocumentDelete)
|
||||||
@if ($checkButtonReconciled)
|
@if ($checkButtonReconciled)
|
||||||
@if (!$document->reconciled)
|
@if (!$document->reconciled)
|
||||||
{!! Form::deleteLink($document, $routeButtonDelete) !!}
|
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal) !!}
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
{!! Form::deleteLink($document, $routeButtonDelete) !!}
|
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal) !!}
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user