mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-24 02:28:12 +00:00
default sorting
This commit is contained in:
parent
02f6b31eb9
commit
3589823215
2 changed files with 12 additions and 2 deletions
|
|
@ -484,6 +484,16 @@ const ChannelsTable = ({}) => {
|
|||
rowVirtualizerOptions: { overscan: 5 },
|
||||
initialState: {
|
||||
density: 'compact',
|
||||
sorting: [
|
||||
{
|
||||
id: 'channel_number',
|
||||
desc: true,
|
||||
},
|
||||
{
|
||||
id: 'name',
|
||||
desc: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
enableRowActions: true,
|
||||
enableExpandAll: false,
|
||||
|
|
@ -502,7 +512,7 @@ const ChannelsTable = ({}) => {
|
|||
},
|
||||
},
|
||||
'mrt-row-actions': {
|
||||
size: 50,
|
||||
size: 60,
|
||||
},
|
||||
},
|
||||
mantineExpandButtonProps: ({ row, table }) => ({
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ const StreamsTable = ({}) => {
|
|||
const [pageCount, setPageCount] = useState(0);
|
||||
const [paginationString, setPaginationString] = useState('');
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [sorting, setSorting] = useState([]);
|
||||
const [sorting, setSorting] = useState([{ id: 'name', desc: '' }]);
|
||||
const [selectedStreamIds, setSelectedStreamIds] = useState([]);
|
||||
const [unselectedStreamIds, setUnselectedStreamIds] = useState([]);
|
||||
// const [allRowsSelected, setAllRowsSelected] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue