mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
parent
f6149813a9
commit
4cdd12214b
@ -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}}>
|
||||
|
@ -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'});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user