File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { profile } from '$lib/auth.svelte.js'
2+ import { redirect } from '@sveltejs/kit'
3+
14export const load = ( { url } ) => {
5+ if ( ! profile . current . jwt ) redirect ( 302 , '/login' )
6+
27 return { crosspost : Boolean ( url . searchParams . get ( 'crosspost' ) ) }
38}
Original file line number Diff line number Diff line change 6767</svelte:head >
6868
6969<div class =" mx-auto max-w-xl flex flex-col gap-4 my-auto h-max w-full" >
70- <Button href =" /accounts" class =" inline-block mb-4 w-max" rounding =" pill" >
70+ <Button href =" /accounts" class =" mb-4 w-max" rounding =" pill" >
7171 <Icon src ={ArrowLeft } size =" 16" micro />
7272 {$t (' common.back' )}
7373 </Button >
Original file line number Diff line number Diff line change 157157 class =" flex flex-col gap-4 h-full w-full flex-2/3"
158158 onsubmit ={preventDefault (submit )}
159159 >
160- <ErrorContainer scope ={page .url .pathname } />
161- <Button href =" /accounts" class =" inline-block mb-4 w-max" rounding =" pill" >
160+ <Button href =" /accounts" class =" mb-4 w-max" rounding =" pill" >
162161 <Icon src ={ArrowLeft } size =" 16" micro />
163162 {$t (' common.back' )}
164163 </Button >
177176 </span >
178177 {/ snippet }
179178 </Header >
179+ <ErrorContainer scope ={page .url .pathname } />
180180
181181 {#if data .site_view .local_site .registration_mode != ' Closed' }
182182 <div class =" flex flex-col md:flex-row gap-2 *:flex-1" >
You can’t perform that action at this time.
0 commit comments