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" :key="bot.botId"
button button
:active="bot.botId === selectedBot" :active="bot.botId === selectedBot"
:title="`${bot.botId} - ${bot.botName} - ${bot.botUrl}`"
@click="selectBot(bot.botId)" @click="selectBot(bot.botId)"
> >
{{ bot.botName || bot.botId }} {{ bot.botName || bot.botId }}

View File

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

View File

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

View File

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