Skip to content

Commit

Permalink
Show validation results banner even if passed
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Oct 21, 2024
1 parent b980326 commit 1009354
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/BuildingBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@
<v-window-item value="about" class="tab-content-about pa-1" :transition="false" :reverse-transition="false">
<v-row>
<v-col>
<v-alert v-if="!bblock.validationPassed" type="error">
Examples or tests for this building block have validation errors
<v-alert v-if="register.validationReport || !bblock.validationPassed" :type="bblock.validationPassed ? 'success' : 'error'">
<span v-if="bblock.validationPassed">
All examples and tests for this building block pass validation.
</span>
<span v-else>
Examples or tests for this building block have validation errors
</span>
<div v-if="register?.validationReport" class="float-end" >
<v-btn
size="small"

:href="`${register.validationReport}#bblock-${bblock.itemIdentifier}`"
prepend-icon="mdi-clipboard-check-outline"
target="_blank"
Expand Down
6 changes: 6 additions & 0 deletions src/components/Markdown.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>

</template>
<script>
</script>

0 comments on commit 1009354

Please sign in to comment.