move ColorPicker from chat settings to separate component

This commit is contained in:
marlon-erler
2024-07-23 13:23:27 +02:00
parent 79bda74049
commit 0874ed956a
5 changed files with 81 additions and 44 deletions
+5
View File
@@ -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;
};