Created update button for workspace settings -- these include TIMEZONE and WORKSPACE NAME
This commit is contained in:
@@ -66,6 +66,19 @@ class ApiService {
|
||||
return this.request('/users');
|
||||
}
|
||||
|
||||
async getWorkspace() {
|
||||
return this.request('/workspace');
|
||||
}
|
||||
|
||||
async updateWorkspace(updates) {
|
||||
const data = await this.request('/workspace', {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(updates),
|
||||
});
|
||||
this.notify();
|
||||
return data;
|
||||
}
|
||||
|
||||
async createUser(userData) {
|
||||
const data = await this.request('/users', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user