diff --git a/app/http/endpoints/api/whitelabel/whitelabelpost.go b/app/http/endpoints/api/whitelabel/whitelabelpost.go index 346e29c..2d4ea57 100644 --- a/app/http/endpoints/api/whitelabel/whitelabelpost.go +++ b/app/http/endpoints/api/whitelabel/whitelabelpost.go @@ -117,8 +117,9 @@ func WhitelabelPost() func(*gin.Context) { } ctx.JSON(200, gin.H{ - "success": true, - "bot": bot, + "success": true, + "bot": bot, + "username": bot.Bot.Username, }) } } diff --git a/frontend/src/views/Whitelabel.svelte b/frontend/src/views/Whitelabel.svelte index 264fcc4..67194d7 100644 --- a/frontend/src/views/Whitelabel.svelte +++ b/frontend/src/views/Whitelabel.svelte @@ -108,7 +108,7 @@ gap: 2%; } - @media only screen and (max-width: 900px) { + @media only screen and (max-width: 1180px) { .wrapper { flex-direction: column; } @@ -228,7 +228,7 @@ $: token = ''; await loadBot(); - notifySuccess(`Started tickets whitelabel on ${res.data.bot.username}`); + notifySuccess(`Started tickets whitelabel on ${res.data.bot.name}`); } async function updateStatus() { @@ -267,6 +267,7 @@ } bot = res.data; + active = true; return true;