mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Use isDeletable instead of asset count
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b57b68571e
commit
9010b7acd0
|
@ -39,7 +39,7 @@
|
|||
@foreach ($locations as $location)
|
||||
<tr{!! (($location->assets_count > 0 ) ? ' class="danger"' : '') !!}>
|
||||
<td>
|
||||
<input type="checkbox" name="ids[]" class="{ (($location->assets_count == 0) ? '' : ' disabled') }}" value="{{ $location->id }}" {!! (($location->assets_count == 0) ? ' checked="checked"' : ' disabled') !!}>
|
||||
<input type="checkbox" name="ids[]" class="{ ($location->isDeletable() ? '' : ' disabled') }}" value="{{ $location->id }}" {!! (($location->isDeletable()) ? ' checked="checked"' : ' disabled') !!}>
|
||||
</td>
|
||||
<td>{{ $location->name }}</td>
|
||||
|
||||
|
|
Loading…
Reference in a new issue