Add task archive and restore

This commit is contained in:
Gordon
2021-05-27 12:49:13 +01:00
parent 79b43b204b
commit 720202e194
10 changed files with 1614 additions and 776 deletions

View File

@ -197,6 +197,16 @@ export default class KanbnTaskPanel {
}
});
return;
// Archive a task and close the webview panel
case 'kanbn.archive':
await this._kanbn.archiveTask(message.taskId);
KanbnTaskPanel.panels[message.panelUuid].dispose();
delete KanbnTaskPanel.panels[message.panelUuid];
if (vscode.workspace.getConfiguration("kanbn").get("showTaskNotifications")) {
vscode.window.showInformationMessage(`Archived task '${message.taskData.name}'.`);
}
return;
}
},
null,