viewer: rename fetch day event

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/803/head
Varun Patil 2023-08-28 16:16:12 -07:00
parent 41a255aaa3
commit c196761c5e
3 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ export default defineComponent({
utils.bus.on('memories:user-config-changed', this.softRefresh);
utils.bus.on('files:file:created', this.softRefresh);
utils.bus.on('memories:window:resize', this.handleResizeWithDelay);
utils.bus.on('memories:viewer:fetch-day', this.fetchDay);
utils.bus.on('memories:timeline:fetch-day', this.fetchDay);
utils.bus.on('memories:timeline:deleted', this.deleteFromViewWithAnimation);
utils.bus.on('memories:timeline:soft-refresh', this.softRefresh);
utils.bus.on('memories:timeline:hard-refresh', this.refresh);
@ -199,7 +199,7 @@ export default defineComponent({
utils.bus.off('memories:user-config-changed', this.softRefresh);
utils.bus.off('files:file:created', this.softRefresh);
utils.bus.off('memories:window:resize', this.handleResizeWithDelay);
utils.bus.off('memories:viewer:fetch-day', this.fetchDay);
utils.bus.off('memories:timeline:fetch-day', this.fetchDay);
utils.bus.off('memories:timeline:deleted', this.deleteFromViewWithAnimation);
utils.bus.off('memories:timeline:soft-refresh', this.softRefresh);
utils.bus.off('memories:timeline:hard-refresh', this.refresh);

View File

@ -383,7 +383,7 @@ export default defineComponent({
methods: {
fetchDay(dayId: number) {
utils.bus.emit('memories:viewer:fetch-day', dayId);
utils.bus.emit('memories:timeline:fetch-day', dayId);
},
updateLoading(delta: number) {

View File

@ -29,7 +29,7 @@ type BusEvent = {
/** Delete these photos from the timeline */
'memories:timeline:deleted': IPhoto[];
/** Viewer has requested fetching day */
'memories:viewer:fetch-day': number;
'memories:timeline:fetch-day': number;
/** Soft-refresh the timeline */
'memories:timeline:soft-refresh': null;
/** Hard-refresh the timeline */