fix(dashboard): correct default items per page with expanded list setting
This commit is contained in:
parent
15a5f78cf1
commit
5bfb0d030e
@ -109,9 +109,16 @@
|
||||
isPublic: isPublic,
|
||||
type: 'member',
|
||||
isMain: false,
|
||||
itemsPerPage: listView === 'card' ? 24 : 25
|
||||
itemsPerPage: getDefaultItemsPerpage()
|
||||
};
|
||||
|
||||
function getDefaultItemsPerpage(): number {
|
||||
if (listView === 'card') return 24;
|
||||
else if (settings && settings.accessibility && settings.accessibility.expandedcards)
|
||||
return 10;
|
||||
else return 25;
|
||||
}
|
||||
|
||||
async function copyShortLink(event?) {
|
||||
if (event) {
|
||||
let ctrlDown = event.ctrlKey||event.metaKey; // mac support
|
||||
|
@ -108,9 +108,16 @@
|
||||
isPublic: isPublic,
|
||||
type: 'group',
|
||||
isMain: false,
|
||||
itemsPerPage: listView === 'card' ? 24 : 25
|
||||
itemsPerPage: getDefaultItemsPerpage()
|
||||
};
|
||||
|
||||
function getDefaultItemsPerpage(): number {
|
||||
if (listView === 'card') return 24;
|
||||
else if (settings && settings.accessibility && settings.accessibility.expandedcards)
|
||||
return 10;
|
||||
else return 25
|
||||
}
|
||||
|
||||
async function copyShortLink(event?) {
|
||||
if (event) {
|
||||
let ctrlDown = event.ctrlKey||event.metaKey; // mac support
|
||||
|
Loading…
Reference in New Issue
Block a user