Skip to content

Commit

Permalink
Show taxfilter in API dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed May 9, 2024
1 parent 65433bf commit 8364a21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion frontend/ApiDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<template v-slot:text>
{{ $STRINGS.CURL_INTRO }}
<br>
<code>curl -X POST -F q=@PATH_TO_FILE <span v-if="email">-F 'email={{email}}'</span> -F 'mode={{mode}}' <span v-for="(path, i) in database" :key="i">-F 'database[]={{ path }}' </span> {{ origin() + '/api/ticket' }}</code>
<code>curl -X POST -F q=@PATH_TO_FILE <span v-if="email">-F 'email={{email}}'</span> -F 'mode={{mode}}' <span v-if="taxfilter">-F 'taxfilter={{taxfilter}}'</span> <span v-for="(path, i) in database" :key="i">-F 'database[]={{ path }}' </span> {{ origin() + '/api/ticket' }}</code>
<br>
Refer to the <a href="https://search.mmseqs.com/docs/" target="_blank" rel="noopener">API documentation</a>, on how to check the status and fetch the result.
</template>
Expand Down Expand Up @@ -35,6 +35,10 @@ export default {
database: {
type: Array,
default: []
},
taxfilter: {
type: String,
default: ''
}
},
data() {
Expand Down
3 changes: 2 additions & 1 deletion frontend/MultimerSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
:disabled="searchDisabled"
:email="email"
:mode="mode"
:database="database"></api-dialog>
:database="database"
:taxfilter="taxFilter ? taxFilter.value : ''"></api-dialog>
<v-icon v-if="query.length > 0" title="Clear" @click="query = ''" style="margin-right: 16px">{{ $MDI.Delete }}</v-icon>
<v-tooltip open-delay="300" top>
<template v-slot:activator="{ on }">
Expand Down
3 changes: 2 additions & 1 deletion frontend/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
:disabled="searchDisabled"
:email="email"
:mode="mode"
:database="database"></api-dialog>
:database="database"
:taxfilter="taxFilter ? taxFilter.value : ''"></api-dialog>
<v-icon v-if="query.length > 0" title="Clear" @click="query = ''" style="margin-right: 16px">{{ $MDI.Delete }}</v-icon>
<v-tooltip open-delay="300" top>
<template v-slot:activator="{ on }">
Expand Down

0 comments on commit 8364a21

Please sign in to comment.