Move actions into context menu, add support for deleting a backup

This commit is contained in:
Dane Everitt 2020-04-09 22:08:09 -07:00
parent 2eb6ab4d63
commit 9ba6aaebde
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 344 additions and 66 deletions

View file

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