support setting items per page in transaction list page

This commit is contained in:
MaysWind
2023-08-11 21:54:09 +08:00
parent b1fb40ca61
commit 2454e22ea2
6 changed files with 82 additions and 7 deletions
+9
View File
@@ -15,6 +15,7 @@ const defaultSettings = {
thousandsSeparator: true,
currencyDisplayMode: currencyConstants.defaultCurrencyDisplayMode,
showAmountInHomePage: true,
itemsCountInTransactionListPage: 15,
showTotalAmountInTransactionListPage: true,
showAccountBalance: true,
statistics: {
@@ -185,6 +186,14 @@ export function setShowAmountInHomePage(value) {
setOption('showAmountInHomePage', value);
}
export function getItemsCountInTransactionListPage() {
return getOption('itemsCountInTransactionListPage');
}
export function setItemsCountInTransactionListPage(value) {
setOption('itemsCountInTransactionListPage', value);
}
export function isShowTotalAmountInTransactionListPage() {
return getOption('showTotalAmountInTransactionListPage');
}