mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
move all date to the top of navigation bar
This commit is contained in:
+9
-9
@@ -676,6 +676,15 @@ function getAllRecentMonthDateRanges(userStore, includeAll, includeCustom, trans
|
|||||||
const allRecentMonthDateRanges = [];
|
const allRecentMonthDateRanges = [];
|
||||||
const recentDateRanges = getRecentMonthDateRanges(12);
|
const recentDateRanges = getRecentMonthDateRanges(12);
|
||||||
|
|
||||||
|
if (includeAll) {
|
||||||
|
allRecentMonthDateRanges.push({
|
||||||
|
dateType: datetime.allDateRanges.All.type,
|
||||||
|
minTime: 0,
|
||||||
|
maxTime: 0,
|
||||||
|
displayName: translateFn('All')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < recentDateRanges.length; i++) {
|
for (let i = 0; i < recentDateRanges.length; i++) {
|
||||||
const recentDateRange = recentDateRanges[i];
|
const recentDateRange = recentDateRanges[i];
|
||||||
|
|
||||||
@@ -690,15 +699,6 @@ function getAllRecentMonthDateRanges(userStore, includeAll, includeCustom, trans
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (includeAll) {
|
|
||||||
allRecentMonthDateRanges.push({
|
|
||||||
dateType: datetime.allDateRanges.All.type,
|
|
||||||
minTime: 0,
|
|
||||||
maxTime: 0,
|
|
||||||
displayName: translateFn('All')
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (includeCustom) {
|
if (includeCustom) {
|
||||||
allRecentMonthDateRanges.push({
|
allRecentMonthDateRanges.push({
|
||||||
dateType: datetime.allDateRanges.Custom.type,
|
dateType: datetime.allDateRanges.Custom.type,
|
||||||
|
|||||||
Reference in New Issue
Block a user