Allow users to change the server description (#4420)
This commit is contained in:
parent
b1abae8106
commit
f2095e815e
7 changed files with 29 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (uuid: string, name: string): Promise<void> => {
|
||||
export default (uuid: string, name: string, description?: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post(`/api/client/servers/${uuid}/settings/rename`, { name })
|
||||
http.post(`/api/client/servers/${uuid}/settings/rename`, { name, description })
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue