move all date to the top of navigation bar

This commit is contained in:
MaysWind
2024-03-24 01:16:07 +08:00
parent 8c164ec833
commit 6ab70b97b4
+9 -9
View File
@@ -676,6 +676,15 @@ function getAllRecentMonthDateRanges(userStore, includeAll, includeCustom, trans
const allRecentMonthDateRanges = [];
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++) {
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) {
allRecentMonthDateRanges.push({
dateType: datetime.allDateRanges.Custom.type,