reactivity in import table

ref #15
This commit is contained in:
Philipp Dormann 2021-01-30 17:50:16 +01:00
parent 7dd0881d29
commit b5013426e6

View File

@ -43,7 +43,7 @@
teams = val; teams = val;
}); });
let selected_org; let selected_org;
let selected_org_or_team; $: selected_org_or_team = "";
let files; let files;
let recent_processed = true; let recent_processed = true;
$: json_output = []; $: json_output = [];
@ -303,7 +303,7 @@
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
{$_('csv_import__lastname')} {$_('csv_import__lastname')}
</th> </th>
{#if opened_from !== 'TeamDetail' && opened_from !== 'RunnerOverview'} {#if (opened_from !== 'TeamDetail' && opened_from !== 'RunnerOverview') || (opened_from === 'RunnerOverview' && selected_org_or_team.includes('ORG_'))}
<th <th
scope="col" scope="col"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
@ -328,7 +328,7 @@
<td class="px-6 py-4 whitespace-nowrap"> <td class="px-6 py-4 whitespace-nowrap">
{runner[`${$_('csv_import__lastname')}`]} {runner[`${$_('csv_import__lastname')}`]}
</td> </td>
{#if opened_from !== 'TeamDetail' && opened_from !== 'RunnerOverview'} {#if (opened_from !== 'TeamDetail' && opened_from !== 'RunnerOverview') || (opened_from === 'RunnerOverview' && selected_org_or_team.includes('ORG_'))}
<td class="px-6 py-4 whitespace-nowrap"> <td class="px-6 py-4 whitespace-nowrap">
{runner[`${$_('csv_import__team')}`] || runner[`${$_('csv_import__class')}`] || '---'} {runner[`${$_('csv_import__team')}`] || runner[`${$_('csv_import__class')}`] || '---'}
</td> </td>