1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

Move space label to main view from sidebar

Solves long-standing debate about removing meta from sidebar, and keeping sidebat for navigation/filtering.
This commit is contained in:
McMatts 2019-03-08 15:45:12 +00:00
parent e6e5f75ee7
commit 0bfde82040
7 changed files with 55 additions and 22 deletions

View file

@ -67,4 +67,15 @@ export default Model.extend({
return '';
}),
addRecent: computed('created', function() {
let after = moment().subtract(7, 'days');
return moment(this.get('created')).isSameOrAfter(after);
}),
updateRecent: computed('created', function() {
let after = moment().subtract(7, 'days');
return moment(this.get('revised')).isSameOrAfter(after) &&
moment(this.get('created')).isBefore(after);
})
});