fix bug where new board colors would be applied even with other pages open

This commit is contained in:
marlon-erler
2026-04-08 13:56:33 +00:00
parent d9211f6fd2
commit cd665b0335
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -5,7 +5,7 @@ import BoardsAndTasksModel, {
TaskFileContent,
} from "../../Model/Files/boardsAndTasksModel";
import ChatViewModel from "../Chat/chatViewModel";
import ChatViewModel, { ChatPageType } from "../Chat/chatViewModel";
import { Color } from "../../colors";
import CoreViewModel from "../Global/coreViewModel";
import SearchViewModel from "../Utility/searchViewModel";
@@ -273,6 +273,7 @@ export default class BoardViewModel extends TaskContainingPageViewModel {
this.color.subscribe(() => {
if (this.isSelected.value == false) return;
if (this.chatViewModel.selectedPage.value != ChatPageType.Tasks) return;
this.applyColor();
});