Skip to content
Snippets Groups Projects
Commit 94ca178b authored by RMidhunSuresh's avatar RMidhunSuresh
Browse files

Add fields for footer in config

parent 874a8b56
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,10 @@
"title": "Chatterbox Test Room",
"avatar": "https://i.imgur.com/KkSYCKB.png"
},
"footer": {
"chatterbox_link": "https://element.io/solutions/embedded-live-chat-for-customer-service",
"matrix_link": "https://matrix.org"
},
"token": "k9SL1R~GcdbjiFjC",
"invite_user": "@botuser:matrix.midhun.dev",
"encrypt_room": true,
......
......@@ -11,6 +11,8 @@ export interface IChatterboxConfig {
encrypt_room: boolean;
// Configurations for header on chatterbox (containing title, avatar, minimize button)
header: IHeader;
// Configurations for footer on chatterbox (containing what links to use)
footer: IFooter;
// Token needed for token-authenticated registration
token: string;
// URL of the image that should be used as the users avatar
......@@ -23,3 +25,10 @@ interface IHeader {
// An optional link to static avatar. If this is not given, the room avatar is used instead
avatar?: string;
}
interface IFooter {
// Specifies the link which must be opened when chatterbox logo in the footer is clicked.
chatterbox_link: string;
// Specifies the link which must be opened when matrix branding in the footer is clicked.
matrix_link: string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment