add new archive folder command

This commit is contained in:
Jan Prochazka
2021-12-09 13:03:08 +01:00
parent 1cf4dc0013
commit 60333cbbd7
3 changed files with 26 additions and 2 deletions

View File

@@ -112,6 +112,23 @@ registerCommand({
},
});
registerCommand({
id: 'new.archiveFolder',
category: 'New',
icon: 'img archive',
name: 'Archive folder',
onClick: () => {
showModal(InputTextModal, {
value: '',
label: 'New archive folder name',
header: 'Create archive folder',
onConfirm: async folder => {
axiosInstance.post('archive/create-folder', { folder });
},
});
},
});
registerCommand({
id: 'new.table',
category: 'New',