qa: Autorefresh myExercices + add button to trigger manual refresh
This commit is contained in:
parent
3049989ac6
commit
0ffa126950
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
let my_exercices = [];
|
let my_exercices = [];
|
||||||
let my_exercicesP = update_exercices()
|
let my_exercicesP = update_exercices()
|
||||||
|
setInterval(() => my_exercicesP = update_exercices(), 62000);
|
||||||
|
|
||||||
async function update_exercices() {
|
async function update_exercices() {
|
||||||
const view = await getQAView();
|
const view = await getQAView();
|
||||||
@ -43,6 +44,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={className}>
|
<div class={className}>
|
||||||
|
<button
|
||||||
|
class="btn btn-dark float-end"
|
||||||
|
on:click|preventDefault={() => my_exercicesP = update_exercices()}
|
||||||
|
>
|
||||||
|
↻
|
||||||
|
</button>
|
||||||
<h3>Vos étapes</h3>
|
<h3>Vos étapes</h3>
|
||||||
{#await my_exercicesP}
|
{#await my_exercicesP}
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
@ -28,6 +28,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={className}>
|
<div class={className}>
|
||||||
|
<button
|
||||||
|
class="btn btn-dark float-end"
|
||||||
|
on:click|preventDefault={() => { todos.refresh(); exo_doneP = getExerciceTested(); }}
|
||||||
|
>
|
||||||
|
↻
|
||||||
|
</button>
|
||||||
<h3>Étapes à tester et valider</h3>
|
<h3>Étapes à tester et valider</h3>
|
||||||
{#await todos.refresh()}
|
{#await todos.refresh()}
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user