fix: 🚑️ swapped nodes/eggs column naming -> now correct order

This commit is contained in:
IceToast 2021-11-29 09:24:18 +01:00
parent bd6cec92ea
commit 38f1273d2d

View file

@ -48,8 +48,8 @@
<th>Disk</th>
<th>Databases</th>
<th>Backups</th>
<th>Eggs</th>
<th>Nodes</th>
<th>Eggs</th>
<th>Servers</th>
<th>Created at</th>
<th></th>
@ -79,23 +79,56 @@
processing: true,
serverSide: true,
stateSave: true,
order: [[ 2, "asc" ]],
order: [
[2, "asc"]
],
ajax: "{{ route('admin.products.datatable') }}",
columns: [
{data: 'disabled'},
{data: 'name'},
{data: 'price'},
{data: 'memory'},
{data: 'cpu'},
{data: 'swap'},
{data: 'disk'},
{data: 'databases'},
{data: 'backups'},
{data: 'nodes', sortable: false},
{data: 'eggs', sortable: false},
{data: 'servers', sortable: false},
{data: 'created_at'},
{data: 'actions', sortable: false},
columns: [{
data: 'disabled'
},
{
data: 'name'
},
{
data: 'price'
},
{
data: 'memory'
},
{
data: 'cpu'
},
{
data: 'swap'
},
{
data: 'disk'
},
{
data: 'databases'
},
{
data: 'backups'
},
{
data: 'nodes',
sortable: false
},
{
data: 'eggs',
sortable: false
},
{
data: 'servers',
sortable: false
},
{
data: 'created_at'
},
{
data: 'actions',
sortable: false
},
],
fnDrawCallback: function(oSettings) {
$('[data-toggle="popover"]').popover();