mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
parent
f6149813a9
commit
4cdd12214b
2 changed files with 2 additions and 2 deletions
|
@ -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">
|
<article class="gh-dashboard-box">
|
||||||
<div class="gh-dashboard-tabs">
|
<div class="gh-dashboard-tabs">
|
||||||
<button type="button" class="gh-dashboard-tab {{if this.postsTabSelected 'is-selected'}}" {{on "click" this.changeTabToPosts}}>
|
<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'];
|
excludedEventTypes = ['aggregated_click_event'];
|
||||||
|
|
||||||
@action
|
@action
|
||||||
async loadPosts() {
|
async loadData() {
|
||||||
this.posts = await this.store.query('post', {limit: 5, filter: 'status:[published,sent]', order: 'published_at desc'});
|
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'});
|
this.mentions = await this.store.query('mention', {limit: 5, order: 'created_at desc'});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue