Skip to content

Commit

Permalink
Only show multimer databases for multimer search
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 14, 2024
1 parent 3cd5de5 commit 9a697c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/Databases.vue
Expand Up @@ -52,6 +52,10 @@ export default {
hideEmail: {
type: Boolean,
default: false
},
multimerOnly: {
type: Boolean,
default: false
}
},
data() {
Expand Down Expand Up @@ -90,6 +94,10 @@ export default {
this.dberror = false;
this.availableDatabases = response.data.databases;
if (this.multimerOnly) {
this.availableDatabases = this.availableDatabases.filter(db => db.complex);
}
const complete = this.availableDatabases.filter(db => db.status === "COMPLETE");
if (this.selectedDatabases.length === 0) {
this.selectedDatabases = complete.filter(db => db.default).map(db => db.path);
Expand Down
1 change: 1 addition & 0 deletions frontend/MultimerSearch.vue
Expand Up @@ -55,6 +55,7 @@
@update:selected="database = $event"
@update:all-databases="databases = $event"
:hideEmail="hideEmail"
:multimer-only="true"
></databases>

<v-radio-group v-model="mode">
Expand Down

0 comments on commit 9a697c4

Please sign in to comment.