fix(frontend): harden owner action confirmation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user