Fixed: Disabling nodes doesn't work properly
This commit is contained in:
parent
a0b5434c13
commit
933e56101c
1 changed files with 4 additions and 2 deletions
|
@ -67,8 +67,10 @@
|
|||
|
||||
@foreach($locations as $location)
|
||||
<optgroup label="{{$location->name}}">
|
||||
@foreach($location->nodes as $nodes)
|
||||
<option value="{{$nodes->id}}">{{$nodes->name}}</option>
|
||||
@foreach($location->nodes as $node)
|
||||
@if(!$node->disabled)
|
||||
<option value="{{$node->id}}">{{$node->name}}</option>
|
||||
@endif
|
||||
@endforeach
|
||||
</optgroup>
|
||||
@endforeach
|
||||
|
|
Loading…
Add table
Reference in a new issue