create separate component for home page buttons
This commit is contained in:
@@ -273,7 +273,8 @@ export default class BoardViewModel extends TaskContainingPageViewModel {
|
||||
|
||||
this.color.subscribe(() => {
|
||||
if (this.isSelected.value == false) return;
|
||||
if (this.chatViewModel.selectedPage.value != ChatPageTypes.Tasks) return;
|
||||
if (this.chatViewModel.selectedPage.value != ChatPageTypes.Tasks)
|
||||
return;
|
||||
this.applyColor();
|
||||
});
|
||||
|
||||
|
||||
@@ -41,8 +41,16 @@ export default class MessagePageViewModel {
|
||||
messageViewModel.loadData();
|
||||
};
|
||||
|
||||
sendReaction = (messageId: string, content: ReactionSymbols, isDeleting: boolean): void => {
|
||||
this.chatViewModel.chatModel.sendReaction(messageId, content, isDeleting);
|
||||
sendReaction = (
|
||||
messageId: string,
|
||||
content: ReactionSymbols,
|
||||
isDeleting: boolean,
|
||||
): void => {
|
||||
this.chatViewModel.chatModel.sendReaction(
|
||||
messageId,
|
||||
content,
|
||||
isDeleting,
|
||||
);
|
||||
};
|
||||
|
||||
// view
|
||||
|
||||
Reference in New Issue
Block a user