fix bug where boards were not listed
This commit is contained in:
Vendored
+2
-5
@@ -1112,7 +1112,7 @@
|
|||||||
this.connectionModel = connectionModel2;
|
this.connectionModel = connectionModel2;
|
||||||
this.chatListModel = chatListModel2;
|
this.chatListModel = chatListModel2;
|
||||||
this.fileTransferModel = fileTransferModel2;
|
this.fileTransferModel = fileTransferModel2;
|
||||||
this.BUILD = "Build 26.05.03.A";
|
this.BUILD = "Build 26.05.05.A";
|
||||||
// CONTEXT
|
// CONTEXT
|
||||||
this.contextStack = /* @__PURE__ */ new Map();
|
this.contextStack = /* @__PURE__ */ new Map();
|
||||||
this.closeContext = (contextId, fromHistoryEvent = false) => {
|
this.closeContext = (contextId, fromHistoryEvent = false) => {
|
||||||
@@ -1981,7 +1981,6 @@
|
|||||||
}
|
}
|
||||||
static {
|
static {
|
||||||
this.setFocusWithDelay = () => {
|
this.setFocusWithDelay = () => {
|
||||||
console.trace("focus");
|
|
||||||
setTimeout(this.setFocus, 100);
|
setTimeout(this.setFocus, 100);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -2764,7 +2763,6 @@
|
|||||||
this.color.value
|
this.color.value
|
||||||
);
|
);
|
||||||
this.taskPageViewModel.updateBoard(newBoardInfoFileContent);
|
this.taskPageViewModel.updateBoard(newBoardInfoFileContent);
|
||||||
this.taskPageViewModel.selectBoard(this);
|
|
||||||
};
|
};
|
||||||
this.applyColor = () => {
|
this.applyColor = () => {
|
||||||
this.taskPageViewModel.chatViewModel.setDisplayedColor(
|
this.taskPageViewModel.chatViewModel.setDisplayedColor(
|
||||||
@@ -3017,7 +3015,6 @@
|
|||||||
};
|
};
|
||||||
this.updateBoard = (boardInfoFileContent) => {
|
this.updateBoard = (boardInfoFileContent) => {
|
||||||
this.boardsAndTasksModel.updateBoardAndSend(boardInfoFileContent);
|
this.boardsAndTasksModel.updateBoardAndSend(boardInfoFileContent);
|
||||||
this.updateBoardIndices();
|
|
||||||
};
|
};
|
||||||
this.deleteBoard = (boardInfoFileContent) => {
|
this.deleteBoard = (boardInfoFileContent) => {
|
||||||
this.boardsAndTasksModel.deleteBoard(boardInfoFileContent.fileId);
|
this.boardsAndTasksModel.deleteBoard(boardInfoFileContent.fileId);
|
||||||
@@ -3029,7 +3026,6 @@
|
|||||||
this.isShowingBoadList.value = !this.isShowingBoadList.value;
|
this.isShowingBoadList.value = !this.isShowingBoadList.value;
|
||||||
};
|
};
|
||||||
this.showBoardInList = (boardInfo) => {
|
this.showBoardInList = (boardInfo) => {
|
||||||
if (this.boardViewModels.value.has(boardInfo.fileId)) return;
|
|
||||||
const boardViewModel = new BoardViewModel(
|
const boardViewModel = new BoardViewModel(
|
||||||
this.coreViewModel,
|
this.coreViewModel,
|
||||||
this.chatViewModel,
|
this.chatViewModel,
|
||||||
@@ -6082,6 +6078,7 @@
|
|||||||
calendarPageViewModel.selectedDate
|
calendarPageViewModel.selectedDate
|
||||||
],
|
],
|
||||||
() => {
|
() => {
|
||||||
|
console.log(calendarPageViewModel.selectedDate.value);
|
||||||
const listState = calendarPageViewModel.getEventsForDate();
|
const listState = calendarPageViewModel.getEventsForDate();
|
||||||
if (listState == void 0) {
|
if (listState == void 0) {
|
||||||
return /* @__PURE__ */ createElement("div", null);
|
return /* @__PURE__ */ createElement("div", null);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function CalendarPage(
|
|||||||
calendarPageViewModel.selectedDate,
|
calendarPageViewModel.selectedDate,
|
||||||
],
|
],
|
||||||
() => {
|
() => {
|
||||||
|
console.log(calendarPageViewModel.selectedDate.value);
|
||||||
const listState = calendarPageViewModel.getEventsForDate();
|
const listState = calendarPageViewModel.getEventsForDate();
|
||||||
|
|
||||||
if (listState == undefined) {
|
if (listState == undefined) {
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ export class ViewController {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static readonly setFocusWithDelay = () => {
|
static readonly setFocusWithDelay = () => {
|
||||||
console.trace("focus");
|
|
||||||
setTimeout(this.setFocus, 100);
|
setTimeout(this.setFocus, 100);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import ConnectionModel from "../../Model/Global/connectionModel";
|
|||||||
import ChatListModel from "../../Model/Chat/chatListModel";
|
import ChatListModel from "../../Model/Chat/chatListModel";
|
||||||
|
|
||||||
export default class CoreViewModel {
|
export default class CoreViewModel {
|
||||||
readonly BUILD = "Build 26.05.03.A";
|
readonly BUILD = "Build 26.05.05.A";
|
||||||
|
|
||||||
translations: Translations;
|
translations: Translations;
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ export default class BoardViewModel extends TaskContainingPageViewModel {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.taskPageViewModel.updateBoard(newBoardInfoFileContent);
|
this.taskPageViewModel.updateBoard(newBoardInfoFileContent);
|
||||||
|
|
||||||
this.taskPageViewModel.selectBoard(this);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
applyColor = (): void => {
|
applyColor = (): void => {
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ export default class TaskPageViewModel extends ContextHost<string> {
|
|||||||
|
|
||||||
updateBoard = (boardInfoFileContent: BoardInfoFileContent): void => {
|
updateBoard = (boardInfoFileContent: BoardInfoFileContent): void => {
|
||||||
this.boardsAndTasksModel.updateBoardAndSend(boardInfoFileContent);
|
this.boardsAndTasksModel.updateBoardAndSend(boardInfoFileContent);
|
||||||
this.updateBoardIndices();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
deleteBoard = (boardInfoFileContent: BoardInfoFileContent): void => {
|
deleteBoard = (boardInfoFileContent: BoardInfoFileContent): void => {
|
||||||
@@ -81,8 +80,6 @@ export default class TaskPageViewModel extends ContextHost<string> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
showBoardInList = (boardInfo: BoardInfoFileContent): void => {
|
showBoardInList = (boardInfo: BoardInfoFileContent): void => {
|
||||||
if (this.boardViewModels.value.has(boardInfo.fileId)) return;
|
|
||||||
|
|
||||||
const boardViewModel: BoardViewModel = new BoardViewModel(
|
const boardViewModel: BoardViewModel = new BoardViewModel(
|
||||||
this.coreViewModel,
|
this.coreViewModel,
|
||||||
this.chatViewModel,
|
this.chatViewModel,
|
||||||
|
|||||||
Reference in New Issue
Block a user