fix(ui): put the new workflow button on the workflow list
This commit is contained in:
1 parent
157627f830
commit
312de2da1c
1 file changed
+4
-3
@@ -165,9 +165,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Workflows">
|
||||
<Button size="icon-sm" aria-label="New workflow" title="New workflow" @click="create"><Plus /></Button>
|
||||
</PageHeader>
|
||||
<PageHeader title="Workflows" />
|
||||
|
||||
<div v-if="error || store.error" class="mb-4 text-sm text-danger" role="alert">
|
||||
<p>{{ error || store.error }}</p>
|
||||
@@ -176,6 +174,8 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
<p v-if="loading || (!store.state.resource && !store.error)" class="text-sm text-fg-muted" role="status">Loading workflows…</p>
|
||||
|
||||
<div class="grid items-start gap-6 lg:grid-cols-[24rem_minmax(0,1fr)]">
|
||||
<div class="flex min-w-0 flex-col gap-1">
|
||||
<Button size="icon-sm" variant="ghost" class="self-end" aria-label="New workflow" title="New workflow" @click="create"><Plus /></Button>
|
||||
<ul class="hidden flex-col gap-0.5 lg:flex" aria-label="Workflows">
|
||||
<li v-for="row in rows" :key="row.id" class="min-w-0">
|
||||
<button
|
||||
@@ -203,6 +203,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<section v-if="!selected && !loading && store.state.resource && !error" class="min-w-0 rounded-lg border border-border bg-card" aria-label="Workflow">
|
||||
<Empty>
|
||||
|
||||
Reference in new issue
Block a user