Skip to content

Commit

Permalink
Merge pull request #1097 from dandi/fix/pending_validation_new
Browse files Browse the repository at this point in the history
checking the validation status, new attempt
  • Loading branch information
yarikoptic authored May 11, 2022
2 parents 56d7abe + 41ecf23 commit 44c1524
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion web/src/views/DandisetLandingView/DandisetPublish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,57 @@
</v-row>

<v-row
v-if="currentDandiset.version_validation_errors.length "
v-if="currentDandiset.status === 'Pending'"
class="mb-4 px-1"
no-gutters
>
<v-menu
:nudge-width="200"
>
<template #activator="{ on: menu, attrs }">
<v-tooltip bottom>
<template #activator="{ on: tooltip }">
<v-card
class="amber lighten-5 no-text-transform"
outlined
v-bind="attrs"
v-on="{ ...tooltip, ...menu }"
>
<v-row class="align-center px-4">
<v-col
cols="1"
class="justify-center py-0"
>
<v-icon
color="warning"
class="mr-1"
>
mdi-playlist-remove
</v-icon>
</v-col>
<v-spacer />
<v-col
cols="9"
class="py-0"
>
<div
v-if="currentDandiset"
class="text-caption"
>
Validation of the dandiset is pending.
</div>
</v-col>
</v-row>
</v-card>
</template>
<span>Reload the page to see if validation is over.</span>
</v-tooltip>
</template>
</v-menu>
</v-row>

<v-row
v-else-if="currentDandiset.version_validation_errors.length "
class="mb-4 px-1"
no-gutters
>
Expand Down

0 comments on commit 44c1524

Please sign in to comment.