cleanup
This commit is contained in:
@@ -139,11 +139,15 @@ export default class TaskModel {
|
|||||||
return taskFileContentOrNull;
|
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 sourcePath: string[] = this.getTaskPath(oldBoardId, taskFileId);
|
||||||
const destinationPath: string[] = this.getTaskPath(newBoardId, taskFileId);
|
const destinationPath: string[] = this.getTaskPath(newBoardId, taskFileId);
|
||||||
return this.storageModel.rename(sourcePath, destinationPath);
|
this.storageModel.renameRecursively(sourcePath, destinationPath);
|
||||||
}
|
};
|
||||||
|
|
||||||
// init
|
// init
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatListModel from "../Model/Chat/chatListModel";
|
import ChatListModel from "../Model/Chat/chatListModel";
|
||||||
import ChatModel from "../Model/chatModel";
|
import ChatModel from "../Model/Chat/chatModel";
|
||||||
import ChatViewModel from "./chatViewModel";
|
import ChatViewModel from "./chatViewModel";
|
||||||
import SettingsViewModel from "./settingsViewModel";
|
import SettingsViewModel from "./settingsViewModel";
|
||||||
import StorageModel from "../Model/Global/storageModel";
|
import StorageModel from "../Model/Global/storageModel";
|
||||||
|
|||||||
Reference in New Issue
Block a user