0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated dashboard controller to fetch 5 events for timeline

refs https://github.com/TryGhost/Team/issues/469
This commit is contained in:
Fabien O'Carroll 2021-02-23 12:46:17 +00:00
parent 110335c7ac
commit c7bc501d23

View file

@ -150,7 +150,7 @@ export default class DashboardController extends Controller {
loadEvents() { loadEvents() {
this.eventsLoading = true; this.eventsLoading = true;
this.membersStats.fetchTimeline().then(({events}) => { this.membersStats.fetchTimeline({limit: 5}).then(({events}) => {
this.eventsData = events; this.eventsData = events;
this.eventsLoading = false; this.eventsLoading = false;
}, (error) => { }, (error) => {