fix(frontend): harden owner action confirmation

This commit is contained in:
User
2026-07-16 18:51:02 +02:00
parent 58e0884df1
commit c6a74c9ccb
3 changed files with 32 additions and 11 deletions
+3 -1
View File
@@ -83,7 +83,7 @@ export function AppShell() {
const isForeignSession = (session: SessionSummary) => {
if (!showingAllSessions || !principal) return false;
if (!session.author) return true;
return session.author !== principal.subject && session.author !== principal.displayName;
return session.author !== principal.subject;
};
function selectActiveSession(id: string | null) {
@@ -526,6 +526,7 @@ export function AppShell() {
<Button
variant={sessionScope === "mine" ? "secondary" : "ghost"}
size="xs"
aria-pressed={sessionScope === "mine"}
onClick={() => setSessionScope("mine")}
>
My sessions
@@ -533,6 +534,7 @@ export function AppShell() {
<Button
variant={showingAllSessions ? "secondary" : "ghost"}
size="xs"
aria-pressed={showingAllSessions}
onClick={() => setSessionScope("all")}
>
All sessions