1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19: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

@ -60,6 +60,7 @@ export default Component.extend(ModalMixin, {
willDestroyElement() {
this._super(...arguments);
this.set('showLinkModal', false);
let mousetrap = this.get('mousetrap');
if (is.not.null(mousetrap)) {