mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 16:03:47 +00:00
clean code
This commit is contained in:
Vendored
+5
-5
@@ -1,7 +1,7 @@
|
||||
declare namespace svelte.JSX {
|
||||
interface DOMAttributes<T> {
|
||||
onclick_outside?: CompositionEventHandler<T>
|
||||
onpointerdown_outside?: (event: CustomEvent) => void
|
||||
onpointerdown_connecting?: (event: CustomEvent) => void
|
||||
declare namespace svelteHTML {
|
||||
interface HTMLAttributes<T> {
|
||||
'on:click_outside'?: (event: CustomEvent) => void
|
||||
'on:pointerdown_outside'?: (event: CustomEvent) => void
|
||||
'on:pointerdown_connecting'?: (event: CustomEvent) => void
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,12 @@
|
||||
$: dbSchema = resourcePath && resourcePath in $dbSchemas ? $dbSchemas[resourcePath] : undefined
|
||||
|
||||
$: shouldDisplayError = resourcePath && resourcePath in $dbSchemas && !$dbSchemas[resourcePath]
|
||||
|
||||
function handleSelected({ detail }: CustomEvent<string>) {
|
||||
if (dbSchema && dbSchema.lang !== 'graphql') {
|
||||
dbSchema.publicOnly = detail === 'dbo'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if loading}
|
||||
@@ -89,9 +95,7 @@
|
||||
<ToggleButtonGroup
|
||||
class="mb-4"
|
||||
selected={dbSchema.publicOnly ? 'dbo' : 'all'}
|
||||
on:selected={({ detail }) => {
|
||||
dbSchema.publicOnly = detail === 'dbo'
|
||||
}}
|
||||
on:selected={handleSelected}
|
||||
let:item
|
||||
>
|
||||
<ToggleButton value="dbo" label={dbSchema.schema.dbo ? 'Dbo' : 'Public'} {item} />
|
||||
|
||||
Reference in New Issue
Block a user