Add create directory button

This commit is contained in:
Dane Everitt 2019-12-15 19:10:01 -08:00
parent ba0757f05c
commit d07ee9a36b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 142 additions and 25 deletions

View file

@ -0,0 +1,9 @@
import http from '@/api/http';
export default (uuid: string, root: string, name: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.post(`/api/client/servers/${uuid}/files/create-folder`, { root, name })
.then(() => resolve())
.catch(reject);
});
};