mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
raw app improvements
This commit is contained in:
@@ -162,6 +162,9 @@
|
||||
sendUserToast(`App hasn't been loaded yet`, true)
|
||||
return
|
||||
}
|
||||
if (!policy.execution_mode) {
|
||||
policy.execution_mode = 'publisher'
|
||||
}
|
||||
await computeTriggerables()
|
||||
try {
|
||||
const { js, css } = await getBundle()
|
||||
@@ -266,6 +269,9 @@
|
||||
}
|
||||
const { js, css } = await getBundle()
|
||||
await computeTriggerables()
|
||||
if (!policy.execution_mode) {
|
||||
policy.execution_mode = 'publisher'
|
||||
}
|
||||
await AppService.updateAppRaw({
|
||||
workspace: $workspaceStore!,
|
||||
path: appPath!,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { base } from '$lib/base'
|
||||
import CenteredModal from '$lib/components/CenteredModal.svelte'
|
||||
import { Button } from '$lib/components/common'
|
||||
import { workspaceStore } from '$lib/stores'
|
||||
import { userStore, workspaceStore } from '$lib/stores'
|
||||
|
||||
let port = Number($page.url.searchParams.get('port'))
|
||||
let host: string = $page.url.searchParams.get('host') || 'localhost'
|
||||
@@ -12,9 +12,11 @@
|
||||
port = port == 0 || Number.isNaN(port) ? 80 : port
|
||||
|
||||
async function authorizeToken(): Promise<void> {
|
||||
const username = $userStore?.username
|
||||
const label = username ? `cli-${username}` : 'cli'
|
||||
const newToken = await UserService.createToken({
|
||||
requestBody: {
|
||||
label: 'External tool token',
|
||||
label,
|
||||
expiration: undefined
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user