fix: approval pages now require no auth

This commit is contained in:
Ruben Fiszel
2022-10-23 15:50:29 +02:00
parent b942f0b603
commit dfc587b812
3 changed files with 1 additions and 23 deletions

View File

@@ -24,7 +24,7 @@
<ItemPicker
bind:this={itemPicker}
pickCallback={(path, summary) => {
dispatch('pick', { path, summary })
dispatch('pick', { path, summary, kind })
}}
itemName={'Script'}
extraField="summary"

View File

@@ -6,22 +6,9 @@
import { superadmin, userStore, usersWorkspaceStore, workspaceStore } from '$lib/stores'
import { getUserExt, refreshSuperadmin } from '$lib/user'
import { sendUserToast } from '$lib/utils'
import { SvelteToast } from '@zerodevx/svelte-toast'
import { onMount } from 'svelte'
import github from 'svelte-highlight/styles/github'
// Default toast options
const toastOptions = {
duration: 4000, // duration of progress bar tween to the `next` value
initial: 1, // initial progress bar value
next: 0, // next progress value
pausable: false, // pause progress bar tween on mouse hover
dismissable: true, // allow dismiss with close button
reversed: false, // insert new toast to bottom of stack
intro: { x: 256 }, // toast intro fly animation settings
theme: {} // css var overrides
}
const monacoEditorUnhandledErrors = [
'Model not found',
'Connection is disposed.',
@@ -107,12 +94,3 @@
</svelte:head>
<slot />
<SvelteToast options={toastOptions} />
<style>
:root {
--toastBackground: #eff6ff;
--toastBarBackground: #eff6ff;
--toastColor: #123456;
}
</style>