qa: Can export QA in JSON

This commit is contained in:
nemunaire 2023-07-25 17:05:18 +02:00
commit 859b6a318e
2 changed files with 93 additions and 4 deletions

View file

@ -6,6 +6,7 @@
import {
Button,
ButtonGroup,
Container,
Table,
} from 'sveltestrap';
@ -22,12 +23,22 @@
<Container class="mt-2 mb-5">
{#if $auth && $auth.is_manager}
<Button
href="export"
<ButtonGroup
class="float-end"
>
Exporter toutes les remarques
</Button>
<Button
href="export"
>
Exporter toutes les remarques
</Button>
<Button
href="api/qa/export.json"
color="dark"
download
>
JSON
</Button>
</ButtonGroup>
{/if}
<h2>
Scénarios