ImportRunnerModal - hide team when loading from TeamDetail

ref #13
This commit is contained in:
Philipp Dormann 2021-01-20 20:25:41 +01:00
parent de0bd5fd57
commit 819b02a204

View File

@ -220,11 +220,13 @@
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>
<th {#if opened_from !== 'TeamDetail'}
scope="col" <th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> scope="col"
{$_('csv_import__team')} class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
</th> {$_('csv_import__team')}
</th>
{/if}
</tr> </tr>
</thead> </thead>
<tbody class="divide-y divide-gray-200"> <tbody class="divide-y divide-gray-200">
@ -243,9 +245,11 @@
<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>
<td class="px-6 py-4 whitespace-nowrap"> {#if opened_from !== 'TeamDetail'}
{runner[`${$_('csv_import__team')}`] || runner[`${$_('csv_import__class')}`] || '---'} <td class="px-6 py-4 whitespace-nowrap">
</td> {runner[`${$_('csv_import__team')}`] || runner[`${$_('csv_import__class')}`] || '---'}
</td>
{/if}
</tr> </tr>
{/if} {/if}
{/each} {/each}