+ })
+
+ this.routeSub = this.route.queryParams.subscribe(params => {
+ if (params['modal'] === QuickSettingsModalComponent.QUERY_MODAL_NAME) {
+ this.openedModal = this.modalService.open(this.modal, { centered: true })
+
+ this.openedModal.hidden.subscribe(() => this.setModalQuery('remove'))
+ }
+ })
+ }
+
+ ngOnDestroy () {
+ if (this.routeSub) this.routeSub.unsubscribe()
+ if (this.loginSub) this.loginSub.unsubscribe()
+ if (this.localStorageSub) this.localStorageSub.unsubscribe()