Skip to content

Commit

Permalink
Merge pull request #256 from biothings/creid-portal
Browse files Browse the repository at this point in the history
fix: 🔨 add custom terms in vocab lookup
  • Loading branch information
marcodarko authored May 2, 2024
2 parents 9bdefc4 + 4a5d56d commit 7a94b1f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions nuxt-app/components/guide/Vocabulary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,19 @@
</template>
</tbody>
</table>
<template v-if="!results.length">
<h1 class="text-center">
<font-awesome-icon
icon="fas fa-search"
class="text-muted"
></font-awesome-icon>
</h1>
<div>
<div v-if="query" class="text-center alert alert-light">
<!-- 🍏 CUSTOM NON STRICT 🍏-->
<template v-if="vocabInfo && !vocabInfo.strict">
<small class="text-muted d-block">No results</small>
<small class="text-muted d-block">Don't see what you need?</small>
<small
@click="addCustomVocab()"
class="text-primary pointer d-block"
>Add <b class="text-danger" v-text="query"></b> anyway</small
>
</template>
</div>
</template>
</div>
</div>
<!-- 🍏 SELECTED 🍏-->
<div class="col-sm-12 m-0 bg-light rounded-0 p-2" v-if="selected.length">
Expand Down

0 comments on commit 7a94b1f

Please sign in to comment.