qa: Fix display for standalone exercices
This commit is contained in:
parent
0bf367bd3b
commit
1f295c3411
@ -83,6 +83,8 @@
|
|||||||
<td>
|
<td>
|
||||||
{#if $exercicesIdx.length == 0 && $themesIdx.length == 0}
|
{#if $exercicesIdx.length == 0 && $themesIdx.length == 0}
|
||||||
<Spinner size="sm" />
|
<Spinner size="sm" />
|
||||||
|
{:else if !$themesIdx[$exercicesIdx[todo.id_exercice].id_theme]}
|
||||||
|
Défis indépendants
|
||||||
{:else}
|
{:else}
|
||||||
<a href="themes/{$exercicesIdx[todo.id_exercice].id_theme}">
|
<a href="themes/{$exercicesIdx[todo.id_exercice].id_theme}">
|
||||||
{$themesIdx[$exercicesIdx[todo.id_exercice].id_theme].name}
|
{$themesIdx[$exercicesIdx[todo.id_exercice].id_theme].name}
|
||||||
|
@ -16,6 +16,7 @@ export function createTodosStore(team) {
|
|||||||
|
|
||||||
refresh: async () => {
|
refresh: async () => {
|
||||||
const list = await getQATodo(team);
|
const list = await getQATodo(team);
|
||||||
|
list.map((e) => e.id += 10000000);
|
||||||
list.push(...await getQAWork(team));
|
list.push(...await getQAWork(team));
|
||||||
update((m) => list);
|
update((m) => list);
|
||||||
return list;
|
return list;
|
||||||
|
@ -102,6 +102,8 @@
|
|||||||
<td>
|
<td>
|
||||||
{#if $exercicesIdx.length == 0 && $themesIdx.length == 0}
|
{#if $exercicesIdx.length == 0 && $themesIdx.length == 0}
|
||||||
<Spinner size="sm" />
|
<Spinner size="sm" />
|
||||||
|
{:else if !$themesIdx[$exercicesIdx[todo.id_exercice].id_theme]}
|
||||||
|
Défis indépendants
|
||||||
{:else}
|
{:else}
|
||||||
<a href="themes/{$exercicesIdx[todo.id_exercice].id_theme}">
|
<a href="themes/{$exercicesIdx[todo.id_exercice].id_theme}">
|
||||||
{$themesIdx[$exercicesIdx[todo.id_exercice].id_theme].name}
|
{$themesIdx[$exercicesIdx[todo.id_exercice].id_theme].name}
|
||||||
|
Loading…
Reference in New Issue
Block a user