-
-
Telegram Integration Successful
+
+
+
+ Integration Successful
+
Unlink TelegramDisconnect
{:else}
- You can connect your account to telegram to get notified of any change to your account.
+ Connect your account to telegram to get notified of any change within the application.
-
- Follow the below steps:
-
-
- Step 1: Authenticate your account via the ClassroomIO bot.
-
+
Step 1: Authenticate your account via the ClassroomIO bot.
window.open('https://t.me/classroomio_bot', '_blank')}
- >Open BotOpen Bot
Step 2: Enter the Chat ID given to you by the bot.
-
+
Connect
{/if}
diff --git a/src/lib/components/Org/Settings/index.svelte b/src/lib/components/Org/Settings/index.svelte
index f468e4c7..d10620fd 100644
--- a/src/lib/components/Org/Settings/index.svelte
+++ b/src/lib/components/Org/Settings/index.svelte
@@ -15,36 +15,7 @@
let query = new URLSearchParams($page.url.search);
let tabKey = query.get('tab') || '';
- const tabs = [
- {
- key: 0,
- label: 'Profile',
- tabKey: '',
- href: $page.url.pathname,
- disabled: false
- },
- {
- key: 1,
- label: 'Organization',
- tabKey: 'org',
- href: `${$page.url.pathname}?tab=org`,
- disabled: !$isOrgAdmin
- },
- {
- key: 2,
- label: 'LandingPage',
- tabKey: 'landingpage',
- href: `${$page.url.pathname}?tab=landingpage`,
- disabled: !$isOrgAdmin
- },
- {
- key: 3,
- label: 'Integrations',
- tabKey: 'integrations',
- href: `${$page.url.pathname}?tab=integrations`,
- disabled: false
- }
- ];
+ let tabs = [];
function getSelectedByTab(tabKey = '') {
const tab = tabs.find((t) => t.tabKey === tabKey);
@@ -67,6 +38,39 @@
changeRouteOnTabChange(selected);
}
}
+
+ $: {
+ tabs = [
+ {
+ key: 0,
+ label: 'Profile',
+ tabKey: '',
+ href: $page.url.pathname,
+ disabled: false
+ },
+ {
+ key: 1,
+ label: 'Organization',
+ tabKey: 'org',
+ href: `${$page.url.pathname}?tab=org`,
+ disabled: !$isOrgAdmin
+ },
+ {
+ key: 2,
+ label: 'LandingPage',
+ tabKey: 'landingpage',
+ href: `${$page.url.pathname}?tab=landingpage`,
+ disabled: !$isOrgAdmin
+ },
+ {
+ key: 3,
+ label: 'Integrations',
+ tabKey: 'integrations',
+ href: `${$page.url.pathname}?tab=integrations`,
+ disabled: false
+ }
+ ];
+ }