Skip to content

Commit

Permalink
V3 - Fix Reorder For Bootstrap (#1412)
Browse files Browse the repository at this point in the history
* Minor tweaks to blades for reorder cols

* Bootstrap Reorder Toggle
  • Loading branch information
lrljoe authored Oct 13, 2023
1 parent 31ae8fe commit c0f00ea
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions resources/views/components/tools/toolbar/bootstrap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,38 @@
</div>
@endif

<div
<div x-data
x-show="reorderStatus"
@class([
'mr-0 mr-md-2 mb-3 mb-md-0' => $component->isBootstrap4(),
'me-0 me-md-2 mb-3 mb-md-0' => $component->isBootstrap5()
])
>
<button
x-on:click="reorderToggle()"
x-on:click="reorderToggle"
type="button"
@class([
'btn btn-default d-block w-100 d-md-inline' => $component->isBootstrap(),
])
>
<span x-show="currentlyReorderingStatus">
@lang('Done Reordering')
@lang('Cancel')
</span>

<span x-show="currentlyReorderingStatus !== true">
<span x-show="!currentlyReorderingStatus">
@lang('Reorder')
</span>

</button>
</div>
<button
type="button"
x-show="reorderStatus && currentlyReorderingStatus"
x-on:click="updateOrderedItems"
:class="(reorderStatus && currentlyReorderingStatus) ? 'btn btn-default d-block w-100 d-md-inline' : 'hidden'"
>
@lang('Save')
</button>

@if ($component->searchIsEnabled() && $component->searchVisibilityIsEnabled())
<div
Expand Down

0 comments on commit c0f00ea

Please sign in to comment.