Both initially (if not enough recent ones are available), and when scrolling to the end of an activity timeline
25 lines
626 B
JavaScript
25 lines
626 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { service } from '@ember/service';
|
|
|
|
export default class ActivityRoute extends Route {
|
|
@service mapUi;
|
|
@service nostrAuth;
|
|
@service activity;
|
|
|
|
activate() {
|
|
this.mapUi.showSidebar();
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(controller, model);
|
|
if (controller && controller.loadTask) {
|
|
controller.loadTask.perform(this.nostrAuth.pubkey);
|
|
}
|
|
}
|
|
|
|
deactivate() {
|
|
// Don't call activity.stop() — keep state alive when navigating to place
|
|
// details and back. The service's willDestroy() handles final cleanup.
|
|
}
|
|
}
|