Skip to content

Commit

Permalink
feat(fastani): Add new query button.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 10, 2024
1 parent 95e2e6e commit b999989
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 5 additions & 2 deletions components/fastani/query/FastAniQueryAddFromText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
Add genomes from text
</v-card-title>

<v-card-text>
<v-card-text class="pt-3">
<v-row no-gutters>
<p>
Genome accessions will automatically be extracted from the text entered below, regardless of format.
</p>
<v-textarea
v-model="userInput"
:disabled="isDisabled"
class="ml-2 mt-3"
class="ml-2"
clearable
dense
hide-details
Expand Down
16 changes: 15 additions & 1 deletion components/fastani/query/FastAniQueryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
>
</FastAniPriorityQueue>

<v-btn
class="white--text"
color="#a26464"
depressed
small
href="/tools/fastani"
>
<v-icon left>
{{ restartSvg }}
</v-icon>
New query
</v-btn>

</v-card>


Expand Down Expand Up @@ -101,7 +114,7 @@

<script lang="ts">
import Vue from 'vue'
import {mdiHandshake, mdiProgressCheck} from "@mdi/js";
import {mdiHandshake, mdiProgressCheck, mdiRestart} from "@mdi/js";
import {isDefined} from "~/assets/ts/common";
import {FastAniAddGenomesFromUserInput, FastAniQueryRow} from "~/assets/models/fastani";
import FastAniQueryTable from "~/components/fastani/FastAniQueryTable.vue";
Expand Down Expand Up @@ -142,6 +155,7 @@ export default Vue.extend({
// Icons
loadExampleSvg: mdiHandshake,
submitIconSvg: mdiProgressCheck,
restartSvg: mdiRestart,
// Config
fastAniMaxPairwise: 1000,
Expand Down

0 comments on commit b999989

Please sign in to comment.