This commit is contained in:
marlon-erler
2024-07-23 13:48:17 +02:00
parent 0874ed956a
commit a06e4498b9
5 changed files with 33 additions and 11 deletions
+8
View File
@@ -46,6 +46,10 @@ export default class BoardViewModel {
this.taskPageViewModel.updateBoard(newBoardInfoFileContent);
};
applyColor = (newColor: Color): void => {
this.taskPageViewModel.chatViewModel.setDisplayedColor(newColor);
};
// load
loadListRelevantData = (): void => {
this.name.value = this.boardInfo.name;
@@ -68,5 +72,9 @@ export default class BoardViewModel {
[this.taskPageViewModel.selectedBoard],
() => this.taskPageViewModel.selectedBoard.value == this
);
this.color.subscribeSilent((newColor) => {
this.applyColor(newColor);
});
}
}