cleanup, prepare BoardSettingsModal
This commit is contained in:
@@ -17,6 +17,9 @@ export default class ChatMessageViewModel {
|
||||
ChatMessageStatus | undefined
|
||||
>(undefined);
|
||||
sentByUser: boolean;
|
||||
|
||||
// state
|
||||
isPresentingInfoModal: React.State<boolean> = new React.State(false);
|
||||
|
||||
// methods
|
||||
copyMessage = (): void => {
|
||||
@@ -29,6 +32,15 @@ export default class ChatMessageViewModel {
|
||||
this.messagePageViewModel.decryptMessage(this);
|
||||
};
|
||||
|
||||
// view
|
||||
showInfoModal = (): void => {
|
||||
this.isPresentingInfoModal.value = true;
|
||||
}
|
||||
|
||||
hideInfoModal = (): void => {
|
||||
this.isPresentingInfoModal.value = false;
|
||||
}
|
||||
|
||||
// load
|
||||
loadData = (): void => {
|
||||
this.channel = this.chatMessage.channel;
|
||||
|
||||
Reference in New Issue
Block a user