From 268a4282dbe9f7613bf587034cb6194f8c0403d6 Mon Sep 17 00:00:00 2001 From: olcxja Date: Wed, 20 May 2026 12:57:55 +0200 Subject: [PATCH] Add inbox tabs blahs --- webroot/blah/en-us.json | 4 ++++ webroot/main.js | 16 ++++++++++++---- webroot/screens.js | 8 ++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/webroot/blah/en-us.json b/webroot/blah/en-us.json index 1e6b7306..f2d7d853 100644 --- a/webroot/blah/en-us.json +++ b/webroot/blah/en-us.json @@ -68,6 +68,10 @@ "title.inbox": "Inbox", "title.invites": "Invites", "title.notifications": "Notifications", + "title.received": "Received", + "title.sent": "Sent", + "title.all": "All", + "title.unread": "Unread", "title.sign.up": "Sign Up", diff --git a/webroot/main.js b/webroot/main.js index fd79db53..b0e262a2 100644 --- a/webroot/main.js +++ b/webroot/main.js @@ -969,6 +969,12 @@ function switchInvitesTab(tab) { document.getElementById('tab-invites-received').classList.add('tab-inactive'); document.getElementById('tab-invites-sent').classList.add('tab-inactive'); document.getElementById(`tab-invites-${tab}`).classList.remove('tab-inactive'); + + + if (tab == "received") + { + + } } function switchNotifisTab(tab) { @@ -991,14 +997,16 @@ async function gotoInbox() { } } -function gotoInvites() { +async function gotoInvites() { setActiveRoombarItem('collapse-invites'); - switchRoomContent("title.invites", invitesScreen, false); + await switchRoomContent("title.invites", invitesScreen, false); + switchInvitesTab('received'); } -function gotoNotifis() { +async function gotoNotifis() { setActiveRoombarItem('collapse-notifis'); - switchRoomContent("title.notifications", notifisScreen, false); + await switchRoomContent("title.notifications", notifisScreen, false); + switchNotifisTab('all'); } function gotoCreateSpace() { diff --git a/webroot/screens.js b/webroot/screens.js index e5d4d527..f788b67b 100644 --- a/webroot/screens.js +++ b/webroot/screens.js @@ -76,10 +76,10 @@ var joinSpaceScreen = ` var invitesScreen = `
- +
-
+

desc.no.invites

@@ -90,10 +90,10 @@ var invitesScreen = ` var notifisScreen = `
- +
-
+

desc.no.notifications