Skip to content

Commit 3e87481

Browse files
committed
add options to disable create and edit button
1 parent bfa9566 commit 3e87481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/fields/select2_from_ajax.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ class="form-control"
3838
@endif
3939
</select>
4040

41-
@if (isset($field['on_the_fly']))
41+
@if ($field['on_the_fly']['create'] ?? true)
4242
@include('webfactor::fields.inc.button-add')
4343
@endif
4444

45-
@if (isset($field['on_the_fly']))
45+
@if ($field['on_the_fly']['edit'] ?? true)
4646
@include('webfactor::fields.inc.button-edit')
4747
@endif
4848
</div>

0 commit comments

Comments
 (0)