Skip to content

Commit

Permalink
Added "Number of files" and "Size (kB)" to task group info modal
Browse files Browse the repository at this point in the history
  • Loading branch information
zonia3000 committed Nov 13, 2024
1 parent b6f8268 commit c66c7a8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions src/lib/components/v2/tasks/TaskGroupInfoModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
<li class="list-group-item">{taskGroup.path || '-'}</li>
<li class="list-group-item list-group-item-light fw-bold">Venv path</li>
<li class="list-group-item">{taskGroup.venv_path || '-'}</li>
<li class="list-group-item list-group-item-light fw-bold">Number of files</li>
<li class="list-group-item">{taskGroup.venv_file_number || '-'}</li>
<li class="list-group-item list-group-item-light fw-bold">Size (kB)</li>
<li class="list-group-item">{taskGroup.venv_size_in_kB || '-'}</li>
<li class="list-group-item list-group-item-light fw-bold">Pip extras</li>
<li class="list-group-item">{taskGroup.pip_extras || '-'}</li>
</ul>
Expand Down
18 changes: 8 additions & 10 deletions src/lib/components/v2/tasks/TaskGroupsTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,14 @@
<i class="bi bi-pencil" />
Edit
</button>
{#if taskGroupRow.groups[taskGroupRow.selectedVersion].origin === 'other'}
<button
class="btn btn-info"
on:click={() =>
taskGroupManageModal.open(taskGroupRow.groups[taskGroupRow.selectedVersion])}
>
<i class="bi bi-gear" />
Manage
</button>
{/if}
<button
class="btn btn-info"
on:click={() =>
taskGroupManageModal.open(taskGroupRow.groups[taskGroupRow.selectedVersion])}
>
<i class="bi bi-gear" />
Manage
</button>
<ConfirmActionButton
modalId="confirmTaskGroupDeleteModal{taskGroupRow.groupTitle}"
style={'danger'}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types-v2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export type TaskGroupV2 = {
python_version: string;
path: string;
venv_path: string;
venv_file_number: number;
venv_size_in_kB: number;
pip_extras: string;
active: boolean;
timestamp_created: string;
Expand Down

0 comments on commit c66c7a8

Please sign in to comment.