add resource select it directly

This commit is contained in:
Ruben Fiszel
2022-12-03 01:28:20 +01:00
parent aabeaf6e5f
commit cb93fe9815
2 changed files with 10 additions and 2 deletions
@@ -80,6 +80,7 @@
export async function open(rt?: string) {
step = 1
value = ''
description = ''
no_back = false
resource_type = rt ?? ''
@@ -200,7 +201,7 @@
description
}
})
dispatch('refresh')
dispatch('refresh', path)
sendUserToast(`App token set at resource and variable path: ${path}`)
drawer.closeDrawer?.()
}
@@ -34,7 +34,14 @@
let appConnect: AppConnect
</script>
<AppConnect newPageOAuth bind:this={appConnect} />
<AppConnect
on:refresh={async (e) => {
await loadResources(resourceType)
value = e.detail
}}
newPageOAuth
bind:this={appConnect}
/>
<div class="flex flex-row gap-x-1 w-full">
<Select