File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
templates/nuxt-node/app/pages Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments