mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add logs button
This commit is contained in:
1 parent
f3c8f51267
commit
b38dc73a5a
1 file changed
+20
-12
+20
-12
@@ -9,7 +9,7 @@
|
||||
TableCellHead,
|
||||
TableCell,
|
||||
TableCellText,
|
||||
TableRowButton
|
||||
TableRow
|
||||
} from '$lib/elements/table';
|
||||
import { toLocaleDateTime } from '$lib/helpers/date';
|
||||
import { calculateTime } from '$lib/helpers/timeConversion';
|
||||
@@ -51,25 +51,22 @@
|
||||
{#if data.executions.total}
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableCellHead>Execution ID</TableCellHead>
|
||||
<TableCellHead width={90}>Execution ID</TableCellHead>
|
||||
<TableCellHead width={140}>Created</TableCellHead>
|
||||
<TableCellHead width={110}>Status</TableCellHead>
|
||||
<TableCellHead width={90}>Trigger</TableCellHead>
|
||||
<TableCellHead width={100}>Duration</TableCellHead>
|
||||
<TableCellHead width={40} />
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
{#each data.executions.executions as execution}
|
||||
<TableRowButton
|
||||
on:click={() => {
|
||||
$log.show = true;
|
||||
$log.func = $func;
|
||||
$log.data = execution;
|
||||
}}>
|
||||
<TableRow>
|
||||
<TableCell title="Execution ID">
|
||||
<Copy value={execution.$id}>
|
||||
<Pill button
|
||||
><span class="icon-duplicate" aria-hidden="true" />
|
||||
<span class="text u-trim">{execution.$id}</span></Pill>
|
||||
<Pill button trim>
|
||||
<span class="icon-duplicate" aria-hidden="true" />
|
||||
<span class="text u-trim">{execution.$id}</span>
|
||||
</Pill>
|
||||
</Copy>
|
||||
</TableCell>
|
||||
<TableCellText title="Created">
|
||||
@@ -87,7 +84,18 @@
|
||||
</TableCellText>
|
||||
<TableCellText title="Duration">
|
||||
{calculateTime(execution.duration)}</TableCellText>
|
||||
</TableRowButton>
|
||||
<TableCell>
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => {
|
||||
$log.show = true;
|
||||
$log.func = $func;
|
||||
$log.data = execution;
|
||||
}}>
|
||||
Logs
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
{/each}
|
||||
</TableBody>
|
||||
</Table>
|
||||
|
||||
Reference in new issue
Block a user