Skip to content

Commit

Permalink
disable stage button when archive_path is missing (#310)
Browse files Browse the repository at this point in the history
* disable stage button when archive_path is missing

* removed is_archival_pending
  • Loading branch information
ri-pandey authored Sep 24, 2024
1 parent 8eac6ff commit 49885e9
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions ui/src/components/project/datasets/ProjectDatasetsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,15 @@
/>
</div>
<div v-else class="flex justify-center">
<!-- dataset is not staged and is being archived -->
<va-popover
v-if="rowData.is_archival_pending"
:message="'Dataset is pending archival to SDA'"
>
<half-circle-spinner
class="flex-none"
:animation-duration="1000"
:size="24"
:color="colors.info"
/>
</va-popover>
<!-- dataset is not staged and has not been archived yet -->
<va-button
v-if="!rowData.archive_path"
class="shadow"
preset="primary"
color="info"
icon="cloud_sync"
disabled
/>
<!-- dataset is not staged and is being staged -->
<va-popover
v-else-if="rowData.is_staging_pending"
Expand Down Expand Up @@ -331,7 +328,6 @@ const rows = computed(() => {
assigned_at,
assignor,
is_staging_pending: wfService.is_step_pending("VALIDATE", ds.workflows),
is_archival_pending: wfService.is_step_pending("ARCHIVE", ds.workflows)
};
});
});
Expand Down

0 comments on commit 49885e9

Please sign in to comment.