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:
parent
e6e5f75ee7
commit
0bfde82040
7 changed files with 55 additions and 22 deletions
|
@ -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);
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue