Add URL to botDescriptor

This commit is contained in:
Matthias 2021-08-29 13:59:39 +02:00
parent 1c4e2aed54
commit 5f7282cb0a
4 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
:key="bot.botId"
button
:active="bot.botId === selectedBot"
:title="`${bot.botId} - ${bot.botName} - ${bot.botUrl}`"
@click="selectBot(bot.botId)"
>
{{ bot.botName || bot.botId }}

View File

@ -152,6 +152,7 @@ export default class Login extends Vue {
this.addBot({
botName: this.auth.botName,
botId: this.nextBotId,
botUrl: this.auth.url,
});
// TODO: Investigate how this needs to be done properly
// setBaseUrl(userService.getAPIUrl());

View File

@ -70,6 +70,7 @@ export class UserService {
response[k] = {
botId: k,
botName: v.botName,
botUrl: v.apiUrl,
};
});
return response;

View File

@ -19,6 +19,7 @@ export interface AuthStorageMulti {
export interface BotDescriptor {
botName: string;
botId: string;
botUrl: string;
}
export interface BotDescriptors {