mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor(web): rename MonthGroup to TimelineMonth (#27447)
Rename MonthGroup class to TimelineMonth to better convey that it represents a single month within the timeline. Updates the file, class, and all references across 16 files. Change-Id: Id50fd6d4b7d0e431571b67c0f81c0e316a6a6964
This commit is contained in:
@@ -396,18 +396,18 @@ export const selectAllAssets = async (timelineManager: TimelineManager, assetInt
|
||||
assetInteraction.selectAll = true;
|
||||
|
||||
try {
|
||||
for (const monthGroup of timelineManager.months) {
|
||||
if (!monthGroup.isLoaded) {
|
||||
await timelineManager.loadMonthGroup(monthGroup.yearMonth);
|
||||
for (const timelineMonth of timelineManager.months) {
|
||||
if (!timelineMonth.isLoaded) {
|
||||
await timelineManager.loadTimelineMonth(timelineMonth.yearMonth);
|
||||
}
|
||||
|
||||
if (!assetInteraction.selectAll) {
|
||||
assetInteraction.clear();
|
||||
break; // Cancelled
|
||||
}
|
||||
assetInteraction.selectAssets([...monthGroup.assetsIterator()]);
|
||||
assetInteraction.selectAssets([...timelineMonth.assetsIterator()]);
|
||||
|
||||
for (const dateGroup of monthGroup.timelineDays) {
|
||||
for (const dateGroup of timelineMonth.timelineDays) {
|
||||
assetInteraction.addGroupToMultiselectGroup(dateGroup.groupTitle);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ export const toISOYearMonthUTC = ({ year, month }: TimelineYearMonth): string =>
|
||||
return `${yearFull}-${monthFull}-01T00:00:00.000Z`;
|
||||
};
|
||||
|
||||
export function formatMonthGroupTitle(_date: DateTime): string {
|
||||
export function formatTimelineMonthTitle(_date: DateTime): string {
|
||||
if (!_date.isValid) {
|
||||
return _date.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user