This commit is contained in:
marlon-erler
2024-07-22 15:07:31 +02:00
parent a9181d8610
commit 5f74756a00
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -139,12 +139,16 @@ export default class TaskModel {
return taskFileContentOrNull;
};
moveTask = (taskFileId: string, oldBoardId: string, newBoardId: string): boolean => {
moveTask = (
taskFileId: string,
oldBoardId: string,
newBoardId: string
): void => {
const sourcePath: string[] = this.getTaskPath(oldBoardId, taskFileId);
const destinationPath: string[] = this.getTaskPath(newBoardId, taskFileId);
return this.storageModel.rename(sourcePath, destinationPath);
}
this.storageModel.renameRecursively(sourcePath, destinationPath);
};
// init
constructor(
storageModel: StorageModel,
@@ -234,4 +238,4 @@ export const TaskFileContentReference: TaskFileContent = {
name: "",
boardId: "",
};
};