mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
minor improvements
This commit is contained in:
@@ -63,6 +63,13 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
let drawer: Drawer
|
||||
|
||||
function handleKeyUp(event: KeyboardEvent) {
|
||||
const key = event.key
|
||||
if (key === 'Enter') {
|
||||
dispatch('save')
|
||||
}
|
||||
}
|
||||
|
||||
export function openDrawer(): void {
|
||||
drawer.openDrawer()
|
||||
resource_type = property.format?.substring(5)
|
||||
@@ -97,6 +104,8 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:window on:keyup={handleKeyUp} />
|
||||
|
||||
<Drawer bind:this={drawer} placement="right">
|
||||
<DrawerContent on:close={clearModal} title="Add an argument">
|
||||
<div class="flex flex-col gap-6">
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
{#if 'started_at' in job && job.started_at}
|
||||
<div>
|
||||
<Icon class="text-gray-700" data={faClock} scale={SMALL_ICON_SCALE} /><span
|
||||
class="mx-2"
|
||||
class="mx-1.5"
|
||||
>
|
||||
Started {displayDaysAgo(job.started_at ?? '')}</span
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user