Add ability for user to change server's name

This commit is contained in:
Dane Everitt 2019-12-09 22:03:10 -08:00
parent 564d947f7e
commit 81bd67cc76
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 168 additions and 3 deletions

View file

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