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

document unpin bug

This commit is contained in:
Harvey Kandola 2017-10-31 15:59:56 -04:00
parent 2b642f25d3
commit e265323a90

View file

@ -42,8 +42,11 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
this.set('saveTemplate.name', this.get('document.name')); this.set('saveTemplate.name', this.get('document.name'));
this.set('saveTemplate.description', this.get('document.excerpt')); this.set('saveTemplate.description', this.get('document.excerpt'));
this.set('pinState.pinId', this.get('pinned').isDocumentPinned(this.get('document.id'))); this.get('pinned').isDocumentPinned(this.get('document.id')).then( (pinId) => {
this.set('pinState.isPinned', this.get('pinState.pinId') !== ''); this.set('pinState.pinId', pinId);
this.set('pinState.isPinned', pinId !== '');
});
this.set('pinState.newName', this.get('document.name')); this.set('pinState.newName', this.get('document.name'));
}, },