diff --git a/src/lib/components/Org/Settings/Integrations.svelte b/src/lib/components/Org/Settings/Integrations.svelte
new file mode 100644
index 00000000..494f414a
--- /dev/null
+++ b/src/lib/components/Org/Settings/Integrations.svelte
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+ Telegram
+
+
+ {#if $profile.telegram_chat_id !== null}
+
+
+
Telegram Integration Successful
+
Unlink Telegram
+
+ {:else}
+
+
+ You can connect your account to telegram to get notified of any change to your account.
+
+
+ Follow the below steps:
+
+
+ Step 1: Authenticate your account via the ClassroomIO bot.
+
+
window.open('https://t.me/classroomio_bot', '_blank')}
+ >Open 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 fd34c9dd..f468e4c7 100644
--- a/src/lib/components/Org/Settings/index.svelte
+++ b/src/lib/components/Org/Settings/index.svelte
@@ -9,6 +9,7 @@
import { browser } from '$app/environment';
import { goto } from '$app/navigation';
import { isOrgAdmin } from '$lib/utils/store/org';
+ import Integrations from './Integrations.svelte';
let selected = 0;
let query = new URLSearchParams($page.url.search);
@@ -35,6 +36,13 @@
tabKey: 'landingpage',
href: `${$page.url.pathname}?tab=landingpage`,
disabled: !$isOrgAdmin
+ },
+ {
+ key: 3,
+ label: 'Integrations',
+ tabKey: 'integrations',
+ href: `${$page.url.pathname}?tab=integrations`,
+ disabled: false
}
];
@@ -79,5 +87,8 @@
+
+
+
diff --git a/src/routes/lms/settings/+page.svelte b/src/routes/lms/settings/+page.svelte
index f296fe29..7191a9e5 100644
--- a/src/routes/lms/settings/+page.svelte
+++ b/src/routes/lms/settings/+page.svelte
@@ -2,6 +2,7 @@
import { page } from '$app/stores';
import { Tabs, Tab, TabContent } from 'carbon-components-svelte';
import Profile from '$lib/components/LMS/components/Profile.svelte';
+ import Integrations from '$lib/components/Org/Settings/Integrations.svelte';
let selected = 0;
const tabs = [
@@ -10,6 +11,13 @@
label: 'Profile',
tabKey: '',
href: $page.url.pathname
+ },
+ {
+ key: 1,
+ label: 'Integrations',
+ tabKey: 'integrations',
+ href: `${$page.url.pathname}?tab=integrations`,
+ disabled: false
}
];
@@ -24,6 +32,9 @@
+
+
+
diff --git a/static/telegram-svg.svg b/static/telegram-svg.svg
new file mode 100644
index 00000000..d58c812d
--- /dev/null
+++ b/static/telegram-svg.svg
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file