# 이슈처리 250
This commit is contained in:
parent
b70e62791d
commit
e2d0744aa9
|
@ -44,7 +44,8 @@ import {
|
||||||
import {
|
import {
|
||||||
EnvironmentsInfo,
|
EnvironmentsInfo,
|
||||||
KEY_ENVIRONMENTS_INFO,
|
KEY_ENVIRONMENTS_INFO,
|
||||||
KEY_VER_INFO
|
KEY_VER_INFO,
|
||||||
|
MainMenu
|
||||||
} from '@app/types';
|
} from '@app/types';
|
||||||
|
|
||||||
import * as AppStore from '@app/store';
|
import * as AppStore from '@app/store';
|
||||||
|
@ -110,6 +111,7 @@ export class MessageBoxComponent
|
||||||
|
|
||||||
messageTypeList: MessageTypeData[] = [];
|
messageTypeList: MessageTypeData[] = [];
|
||||||
langChangeSubscription: Subscription;
|
langChangeSubscription: Subscription;
|
||||||
|
messageActivatedSubscription: Subscription;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private store: Store<any>,
|
private store: Store<any>,
|
||||||
|
@ -255,9 +257,13 @@ export class MessageBoxComponent
|
||||||
// 초기 검색은 수신함.
|
// 초기 검색은 수신함.
|
||||||
this.getRetrieveMessage(MessageType.Receive, 0);
|
this.getRetrieveMessage(MessageType.Receive, 0);
|
||||||
|
|
||||||
if (!!this.tabs) {
|
this.messageActivatedSubscription = this.store
|
||||||
this.tabs.realignInkBar();
|
.pipe(select(AppStore.MessengerSelector.SettingsSelector.gnbMenuIndex))
|
||||||
}
|
.subscribe(menu => {
|
||||||
|
if (menu === MainMenu.Message && !!this.tabs) {
|
||||||
|
this.tabs.realignInkBar();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.setMessageTypeData();
|
this.setMessageTypeData();
|
||||||
this.langChangeSubscription = merge(
|
this.langChangeSubscription = merge(
|
||||||
|
@ -283,6 +289,9 @@ export class MessageBoxComponent
|
||||||
if (!!this.langChangeSubscription) {
|
if (!!this.langChangeSubscription) {
|
||||||
this.langChangeSubscription.unsubscribe();
|
this.langChangeSubscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
if (!!this.messageActivatedSubscription) {
|
||||||
|
this.messageActivatedSubscription.unsubscribe();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedIndexTab(value: number) {
|
onSelectedIndexTab(value: number) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user