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:
parent
3fd1d793a3
commit
9b06ddecb5
4 changed files with 36 additions and 15 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue