Skip to content

Commit 227083c

Browse files
committed
cleanup
1 parent 6ff380b commit 227083c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<h1>Index Route</h1>
4-
<SignedIn>
4+
<Show when="signedIn">
55
<p>You are signed in!</p>
66
<div>
77
<p>View your profile here</p>
@@ -11,11 +11,11 @@
1111
<div>
1212
<SignOutButton />
1313
</div>
14-
</SignedIn>
15-
<SignedOut>
14+
</Show>
15+
<Show when="signedOut">
1616
<p>You are signed out</p>
1717

1818
<SignIn />
19-
</SignedOut>
19+
</Show>
2020
</div>
2121
</template>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<Protect>
2+
<Show :when="{ role: 'org:admin' }">
33
<p>I am an admin</p>
44
<template #fallback>
55
<p>Not an admin</p>
66
</template>
7-
</Protect>
7+
</Show>
88
</template>

integration/tests/nuxt/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withCustomRoles] })('basic te
6969
await expect(u.page.getByText('You are signed in!')).toBeVisible();
7070
});
7171

72-
test('renders <Protect /> component contents to admin', async ({ page, context }) => {
72+
test('renders <Show /> component contents to admin', async ({ page, context }) => {
7373
const u = createTestUtils({ app, page, context });
7474

7575
await u.page.goToRelative('/sign-in');

0 commit comments

Comments
 (0)