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

Work a bit ui

parent 39e22456
No related branches found
No related tags found
1 merge request!24Anti defense systems
Pipeline #135897 passed
...@@ -86,19 +86,27 @@ const submit = handleSubmit(async (values) => { ...@@ -86,19 +86,27 @@ const submit = handleSubmit(async (values) => {
<UppyGenomeUpload v-model="files.value.value" ref="uppyComponentRef" class="mb-2" /> <UppyGenomeUpload v-model="files.value.value" ref="uppyComponentRef" class="mb-2" />
</v-window-item> </v-window-item>
<v-window-item value="paste"> <v-window-item value="paste">
<v-form @submit.prevent="submit"> <v-card flat>
<v-switch v-model="antiDefenseSystem" color="primary" inset label="anti defense system"></v-switch> <v-card-text>
<v-textarea v-model="sequence" :error-messages="sequenceErrorMessage" :count="maxSequenceLength" <v-form @submit.prevent="submit">
label="Fasta sequences" variant="filled" auto-grow></v-textarea> <v-switch v-model="antiDefenseSystem" color="primary" label="anti defense system"
<v-btn type="submit" :loading="loading">Submit</v-btn> hide-details="auto" class="mx-0"></v-switch>
</v-form> <v-textarea v-model="sequence" :error-messages="sequenceErrorMessage" :count="maxSequenceLength"
label="Fasta sequences" variant="filled" auto-grow></v-textarea>
<v-btn type="submit" :loading="loading">Submit</v-btn>
</v-form>
</v-card-text>
</v-card>
</v-window-item> </v-window-item>
<v-window-item value="example"> <v-window-item value="example">
<v-card flat color="transparent"> <v-card flat color="transparent">
<v-card-text> <v-card-text>
You can try an example with Escherichia coli str. K-12 substr. MG1655 proteins (<a target="_blank" You can try an example with Escherichia coli str. K-12 substr. MG1655 proteins (<a target="_blank"
href="https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000005845.2">GCF_000005845.2</a>) href="https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000005845.2">GCF_000005845.2</a>)
<v-switch v-model="antiDefenseSystem" color="primary" inset label="anti defense system"></v-switch> </v-card-text>
<v-card-text>
<v-switch v-model="antiDefenseSystem" color="primary" label="anti defense system"
hide-details="auto"></v-switch>
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-btn variant="elevated" density="default" size="default" :slim="false" rounded="xl" <v-btn variant="elevated" density="default" size="default" :slim="false" rounded="xl"
......
...@@ -95,23 +95,27 @@ defineExpose({ ...@@ -95,23 +95,27 @@ defineExpose({
</script> </script>
<template> <template>
<v-card flat> <v-card flat>
<v-form @submit.prevent="runAnalysis"> <v-card-text>
<v-switch v-model="antiDefenseSystem" color="primary" inset label="anti defense system"></v-switch> <v-form @submit.prevent="runAnalysis">
<Dashboard :uppy="uppyCovar" :props="{ <v-switch v-model="antiDefenseSystem" color="primary" label="anti defense system"
inline: true, hide-details="auto" class="ml-1"></v-switch>
hideUploadButton: true,
theme: themeUppy,
width,
height: 300,
metaFields: [{
id: 'uppy-genome-upload',
name: 'genome',
placeholder: 'Genomes'
}],
}" />
<v-btn type="submit" :disabled="!hasAddFiles" :loading="uploading">Submit</v-btn>
</v-form>
<Dashboard :uppy="uppyCovar" :props="{
inline: true,
hideUploadButton: true,
theme: themeUppy,
width,
height: 300,
metaFields: [{
id: 'uppy-genome-upload',
name: 'genome',
placeholder: 'Genomes'
}],
}" />
<v-btn type="submit" :disabled="!hasAddFiles" :loading="uploading">Submit</v-btn>
</v-form>
</v-card-text>
</v-card> </v-card>
</template> </template>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment