mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
document unpin bug
This commit is contained in:
parent
2b642f25d3
commit
e265323a90
1 changed files with 5 additions and 2 deletions
|
@ -42,8 +42,11 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
this.set('saveTemplate.name', this.get('document.name'));
|
||||
this.set('saveTemplate.description', this.get('document.excerpt'));
|
||||
|
||||
this.set('pinState.pinId', this.get('pinned').isDocumentPinned(this.get('document.id')));
|
||||
this.set('pinState.isPinned', this.get('pinState.pinId') !== '');
|
||||
this.get('pinned').isDocumentPinned(this.get('document.id')).then( (pinId) => {
|
||||
this.set('pinState.pinId', pinId);
|
||||
this.set('pinState.isPinned', pinId !== '');
|
||||
});
|
||||
|
||||
this.set('pinState.newName', this.get('document.name'));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue