diff --git a/web/src/app/infra/http/BackendClient.ts b/web/src/app/infra/http/BackendClient.ts index ad125f974..bbcbe0968 100644 --- a/web/src/app/infra/http/BackendClient.ts +++ b/web/src/app/infra/http/BackendClient.ts @@ -394,12 +394,23 @@ export class BackendClient extends BaseHttpClient { return this.delete(`/api/v1/platform/bots/${uuid}`); } - public getBotAdmins(botId: string): Promise<{ admins: Array<{ id: number; launcher_type: string; launcher_id: string }> }> { + public getBotAdmins( + botId: string, + ): Promise<{ + admins: Array<{ id: number; launcher_type: string; launcher_id: string }>; + }> { return this.get(`/api/v1/platform/bots/${botId}/admins`); } - public addBotAdmin(botId: string, launcher_type: string, launcher_id: string): Promise<{ id: number }> { - return this.post(`/api/v1/platform/bots/${botId}/admins`, { launcher_type, launcher_id }); + public addBotAdmin( + botId: string, + launcher_type: string, + launcher_id: string, + ): Promise<{ id: number }> { + return this.post(`/api/v1/platform/bots/${botId}/admins`, { + launcher_type, + launcher_id, + }); } public deleteBotAdmin(botId: string, adminId: number): Promise { diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts index 1803086c0..bfc351f3e 100644 --- a/web/src/i18n/locales/en-US.ts +++ b/web/src/i18n/locales/en-US.ts @@ -446,7 +446,8 @@ const enUS = { }, admins: { title: 'Admins', - description: 'Launchers (person/group IDs) that have admin privilege for this bot\'s commands', + description: + "Launchers (person/group IDs) that have admin privilege for this bot's commands", addAdmin: 'Add Admin', launcherType: 'Type', launcherId: 'ID',