Skip to content
Snippets Groups Projects
Commit ebbb37c3 authored by moon's avatar moon
Browse files

Description field added for NovelCondensates

parent 3d49940a
No related branches found
No related tags found
No related merge requests found
......@@ -605,6 +605,31 @@
</p>
</div>
<label
class="text-right"
for="condensate_description"
>Description</label>
<div class="col-span-2">
<input
id="condensate_description"
v-model.trim="condensate.description"
class="
bg-white
w-1/3
py-4
px-4
w-full
rounded-lg
text-gray-700
bg-transparent
border border-gray-500
hover:border-gray-700
"
type="text"
placeholder="Description"
>
</div>
<label
class="text-right"
for="condensate_comments"
......@@ -732,6 +757,7 @@ export default {
proteins: [],
synonyms: '',
comments: '',
description: '',
errors: {
name: false,
species: false,
......@@ -807,6 +833,7 @@ export default {
this.condensate.proteins = [];
this.condensate.synonyms = '';
this.condensate.comments = '';
this.condensate.description = '';
this.condensate.errorMsg = '';
this.$router.push('/');
},
......@@ -973,6 +1000,7 @@ export default {
IsExperimental: vm.condensate.is_experimental,
Proteins: vm.proteinList,
Synonyms: vm.condensate.synonyms,
Description: vm.condensate.description,
Status: 'accepted',
SubmissionComments:
'Maintainer do not need to provide a reason for such change at the moment!',
......@@ -983,6 +1011,7 @@ export default {
IsExperimental: vm.condensate.is_experimental,
Proteins: vm.proteinList,
Synonyms: vm.condensate.synonyms,
Description: vm.condensate.description,
Status: 'requested',
SubmissionComments: vm.condensate.comments,
};
......@@ -1006,6 +1035,7 @@ export default {
vm.condensate.species =
vm.condensate.synonyms =
vm.condensate.comments =
vm.condensate.description =
'';
vm.$store.dispatch('Param/resetProteins');
vm.$emit('showToaster', 'Condensate added successfully!');
......
......@@ -72,8 +72,8 @@ export default {
},
},
{
title: 'Species Tax ID',
data: 'attributes.SpeciesTaxId',
title: 'Description',
data: 'attributes.Description',
},
{
title: 'Status',
......
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