|
32 | 32 | </div>
|
33 | 33 | </div>
|
34 | 34 |
|
| 35 | + <div class="grid grid-flow-col pr-4 mt-2" x-bind:class="[$store.fileViewer.filesChecked.length ? 'justify-between' : 'justify-end']" x-show="$store.fileViewer.checkBoxesVisibility"> |
| 36 | + <button x-show="$store.fileViewer.filesChecked.length" x-on:click.stop="if (confirm('Are you sure you want to delete selected log files? THIS ACTION CANNOT BE UNDONE.')) { $wire.call('deleteMultipleFiles', $store.fileViewer.filesChecked) }" |
| 37 | + class="button inline-flex"> |
| 38 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="w-5 mr-1" fill="currentColor"><use href="#icon-trashcan" /></svg> |
| 39 | + Delete selected files |
| 40 | + </button> |
| 41 | + <button class="button inline-flex" x-on:click.stop="$store.fileViewer.showCheckBoxes(); $store.fileViewer.resetChecks()"> |
| 42 | + Cancel <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="w-5 ml-1" fill="currentColor"><use href="#icon-cross" /></svg> |
| 43 | + </button> |
| 44 | + </div> |
| 45 | + |
35 | 46 | <div id="file-list-container" class="relative h-full overflow-hidden" x-cloak>
|
36 | 47 | <div class="pointer-events-none absolute z-10 top-0 h-4 w-full bg-gradient-to-b from-gray-100 dark:from-gray-900 to-transparent"></div>
|
37 | 48 | <div class="file-list" x-ref="fileList" x-on:scroll="(event) => $store.fileViewer.onScroll(event)">
|
@@ -98,14 +109,6 @@ class="dropdown w-48"
|
98 | 109 | </div>
|
99 | 110 |
|
100 | 111 | <div class="folder-files pl-3 ml-1 border-l border-gray-200 dark:border-gray-800" x-show="$store.fileViewer.isOpen(folder)">
|
101 |
| - <div class="grid grid-flow-col gap-x-32" x-show="$store.fileViewer.filesChecked.length"> |
102 |
| - <button x-on:click.stop="if (confirm('Are you sure you want to delete selected log files? THIS ACTION CANNOT BE UNDONE.')) { $wire.call('deleteMultipleFiles', $store.fileViewer.filesChecked) }" class="pt-4 pb-3 inline-flex" > |
103 |
| - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="w-5" fill="currentColor"><use href="#icon-trashcan" /></svg> <small>Delete Selected Files</small> |
104 |
| - </button> |
105 |
| - <button class="inline-flex pt-4 pb-3" x-on:click.stop="$store.fileViewer.showCheckBoxes(), $store.fileViewer.resetChecks()"> |
106 |
| - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="w-5" fill="currentColor"><use href="#icon-cross" /></svg> |
107 |
| - </button> |
108 |
| - </div> |
109 | 112 | @foreach($folder->files() as $logFile)
|
110 | 113 | @include('log-viewer::partials.file-list-item', ['logFile' => $logFile])
|
111 | 114 | @endforeach
|
|
0 commit comments