move ColorPicker from chat settings to separate component
This commit is contained in:
@@ -41,6 +41,11 @@ export default class ChatViewModel {
|
||||
this.taskPageViewModel.closeBoard();
|
||||
}
|
||||
|
||||
setColor = (color: Color): void => {
|
||||
this.displayedColor.value = color;
|
||||
this.chatModel.setColor(color);
|
||||
}
|
||||
|
||||
resetColor = (): void => {
|
||||
this.displayedColor.value = this.settingsPageViewModel.color.value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user