1
0
Fork 0
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:
Harvey Kandola 2019-02-28 15:11:46 +00:00
parent 3fd1d793a3
commit 9b06ddecb5
4 changed files with 36 additions and 15 deletions

View file

@ -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();
},