1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Hide delete product #1149

This commit is contained in:
Hillel Coren 2016-11-13 09:20:44 +02:00
parent a9a94df973
commit 12d313c64a

View File

@ -19,7 +19,7 @@
@endif
@endcan
@if ($entityType == ENTITY_EXPENSE_CATEGORY)
@if (in_array($entityType, [ENTITY_EXPENSE_CATEGORY, ENTITY_PRODUCT]))
{!! Button::normal(trans('texts.archive'))->asLinkTo('javascript:submitForm("archive")')->appendIcon(Icon::create('trash')) !!}
@else
{!! DropdownButton::normal(trans('texts.archive'))->withContents([