Updated names

refs https://github.com/TryGhost/Team/issues/2481
This commit is contained in:
Djordje Vlaisavljevic 2023-01-30 14:13:32 +00:00
parent f6149813a9
commit 4cdd12214b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<section class="gh-dashboard-section gh-dashboard-recents" {{did-insert this.loadPosts}}>
<section class="gh-dashboard-section gh-dashboard-recents" {{did-insert this.loadData}}>
<article class="gh-dashboard-box">
<div class="gh-dashboard-tabs">
<button type="button" class="gh-dashboard-tab {{if this.postsTabSelected 'is-selected'}}" {{on "click" this.changeTabToPosts}}>

View File

@ -13,7 +13,7 @@ export default class Recents extends Component {
excludedEventTypes = ['aggregated_click_event'];
@action
async loadPosts() {
async loadData() {
this.posts = await this.store.query('post', {limit: 5, filter: 'status:[published,sent]', order: 'published_at desc'});
this.mentions = await this.store.query('mention', {limit: 5, order: 'created_at desc'});
}