Skip to content
Snippets Groups Projects
Commit 1ab97326 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Try to add molstart plugin in table

parent ee6f3bca
No related branches found
No related tags found
1 merge request!131Merge relevant Abstract and references
Pipeline #117521 failed
This commit is part of merge request !131. Comments created here will be created in the context of that merge request.
...@@ -51,7 +51,7 @@ const filterError: Ref<string | null> = ref(null) ...@@ -51,7 +51,7 @@ const filterError: Ref<string | null> = ref(null)
const msFilter: Ref<string | undefined> = ref(undefined) const msFilter: Ref<string | undefined> = ref(undefined)
const page = ref(1) const page = ref(1)
let loading = ref(false) let loading = ref(false)
const expanded = ref([])
const { height } = useDisplay(); const { height } = useDisplay();
const minTableHeight = ref(400) const minTableHeight = ref(400)
const computedTableHeight = computed(() => { const computedTableHeight = computed(() => {
...@@ -156,9 +156,6 @@ function clearFilterOrSearch() { ...@@ -156,9 +156,6 @@ function clearFilterOrSearch() {
} }
watch(msFilter, async (fos) => { watch(msFilter, async (fos) => {
console.log("the filter change")
console.log(msFilter)
console.log(fos)
searchOrFilter() searchOrFilter()
search.value = '' search.value = ''
...@@ -190,10 +187,7 @@ watch(filterInputValues, (newSoF) => { ...@@ -190,10 +187,7 @@ watch(filterInputValues, (newSoF) => {
}) })
watch(search, () => { searchOrFilter() }) watch(search, () => { searchOrFilter() })
// watch(queryInputValue, (newQuery) => {
// searchOrFilter()
// })
const filterStep = computed(() => { const filterStep = computed(() => {
return filterInputValues.value !== null && filterInputValues.value.length > 0 ? filterInputValues.value?.length % 3 : null return filterInputValues.value !== null && filterInputValues.value.length > 0 ? filterInputValues.value?.length % 3 : null
...@@ -371,9 +365,10 @@ function namesToAccessionChips(names: string[]) { ...@@ -371,9 +365,10 @@ function namesToAccessionChips(names: string[]) {
</v-row> </v-row>
</v-card-text> </v-card-text>
<v-data-table-server v-if="!msError" v-model:page="reactiveParams.page" <v-data-table-server v-if="!msError" v-model:page="reactiveParams.page"
v-model:items-per-page="reactiveParams.hitsPerPage" v-model:sortBy="sortByRef" fixed-header :loading="loading" v-model:items-per-page="reactiveParams.hitsPerPage" v-model:sortBy="sortByRef" v-model:expanded="expanded"
:headers="headers" :items="msResult?.hits ?? []" :items-length="msResult?.totalHits ?? 0" show-expand fixed-header :loading="loading" :headers="headers" :items="msResult?.hits ?? []"
:item-value="itemValue" multi-sort density="compact" :height="computedTableHeight" class="elevation-1 mt-2"> :items-length="msResult?.totalHits ?? 0" :item-value="itemValue" multi-sort density="compact"
:height="computedTableHeight" class="elevation-1 mt-2">
<template #[`item.accession_in_sys`]="{ item }"> <template #[`item.accession_in_sys`]="{ item }">
<CollapsibleChips :items="namesToAccessionChips(item.accession_in_sys)"></CollapsibleChips> <CollapsibleChips :items="namesToAccessionChips(item.accession_in_sys)"></CollapsibleChips>
</template> </template>
...@@ -388,6 +383,21 @@ function namesToAccessionChips(names: string[]) { ...@@ -388,6 +383,21 @@ function namesToAccessionChips(names: string[]) {
<v-icon v-if="item.completed" color="success" icon="md:check"></v-icon> <v-icon v-if="item.completed" color="success" icon="md:check"></v-icon>
<v-icon v-else color="warning" icon="md:dangerous"></v-icon> <v-icon v-else color="warning" icon="md:dangerous"></v-icon>
</template> </template>
<template #expanded-row="{ columns, item }">
<tr>
<td :colspan="columns.length">
<v-card flat color="transparent">
<v-card-text>
<MolstarPdbePlugin
:data-urls="['/avs/AVAST_I,AVAST_I__Avs1B,0,V-plddts_80.96481.pdb', '/avs/AVAST_I, AVAST_I__Avs1A, 0, V - plddts_85.07081.pdb']">
</MolstarPdbePlugin>
</v-card-text>
</v-card>
</td>
</tr>
</template>
</v-data-table-server> </v-data-table-server>
<v-alert v-else type="error"> <v-alert v-else type="error">
{{ msError }} {{ msError }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment