Skip to content

Commit

Permalink
fixed full page mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Jul 8, 2022
1 parent e1a54d1 commit 5e2a13d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions resources/views/fields/shared/full-fields.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@
</div>
</template>

<div class="my-4">
@if(!method_exists($field, 'isRelationToOne') || !$field->isRelationToOne())
<div class="my-4">
<button type="button"
class="bg-gradient-to-r from-purple to-pink text-white
text-white font-semibold py-2 px-4 rounded"
class="bg-gradient-to-r from-purple to-pink text-white
text-white font-semibold py-2 px-4 rounded"
@click="addNewField()"
>
Добавить
</button>
@else
<button x-show="items.length == 0" type="button"
class="bg-gradient-to-r from-purple to-pink text-white
text-white font-semibold py-2 px-4 rounded"
@click="addNewField()"
>
Создать
</button>
</div>
@else
<button x-show="items.length == 0" type="button"
class="bg-gradient-to-r from-purple to-pink text-white
text-white font-semibold py-2 px-4 rounded"
@click="addNewField()"
>
Создать
</button>
@endif
</div>
</div>

<script>
Expand Down

0 comments on commit 5e2a13d

Please sign in to comment.