mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
Refactor content linking code flow
Fixed EmberJS deprecation warnings by removing usage of observers. Fixed edge case bug for repeated content link insertion modal clicks.
This commit is contained in:
parent
3fd1d793a3
commit
9b06ddecb5
4 changed files with 36 additions and 15 deletions
|
@ -37,6 +37,7 @@ export default Component.extend(Notifier, {
|
|||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set('showLikes', this.get('folder.allowLikes') && this.get('document.isLive'));
|
||||
},
|
||||
|
||||
|
@ -44,6 +45,10 @@ export default Component.extend(Notifier, {
|
|||
this._super(...arguments);
|
||||
|
||||
this.jumpToSection(this.get('currentPageId'));
|
||||
},
|
||||
|
||||
didRender() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.contentLinkHandler();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue