Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-web
ensembl-client
Commits
49494801
Unverified
Commit
49494801
authored
May 23, 2022
by
Ridwan Amode
Committed by
GitHub
May 23, 2022
Browse files
increase sequence limit to 50 (#753)
parent
b9f9d00e
Pipeline
#280322
passed with stages
in 5 minutes and 10 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
src/content/app/tools/blast/components/blast-input-sequences/BlastInputSequences.scss
...components/blast-input-sequences/BlastInputSequences.scss
+4
-0
src/content/app/tools/blast/components/blast-input-sequences/BlastInputSequencesHeader.tsx
...nents/blast-input-sequences/BlastInputSequencesHeader.tsx
+8
-2
src/content/app/tools/blast/utils/blastFormValidator.ts
src/content/app/tools/blast/utils/blastFormValidator.ts
+1
-1
No files found.
src/content/app/tools/blast/components/blast-input-sequences/BlastInputSequences.scss
View file @
49494801
...
...
@@ -48,6 +48,10 @@
border-radius
:
100%
;
font-size
:
15px
;
margin
:
0
0
.6rem
0
0
.6rem
;
&
Error
{
background-color
:
$red
;
}
}
.maxSequences
{
...
...
src/content/app/tools/blast/components/blast-input-sequences/BlastInputSequencesHeader.tsx
View file @
49494801
...
...
@@ -74,6 +74,10 @@ const BlastInputSequencesHeader = (props: Props) => {
?
sequences
.
length
+
1
:
sequences
.
length
;
const
sequenceCounterClass
=
classNames
(
styles
.
sequenceCounter
,
{
[
styles
.
sequenceCounterError
]:
sequences
.
length
>
MAX_BLAST_SEQUENCE_COUNT
});
const
headerClass
=
classNames
(
styles
.
header
,
{
[
styles
.
smallScreenHeader
]:
compact
});
...
...
@@ -82,8 +86,10 @@ const BlastInputSequencesHeader = (props: Props) => {
<
div
className
=
{
headerClass
}
>
<
div
className
=
{
styles
.
headerGroup
}
>
<
span
className
=
{
styles
.
headerTitle
}
>
Sequences
</
span
>
<
span
className
=
{
styles
.
sequenceCounter
}
>
{
sequencesCount
}
</
span
>
<
span
className
=
{
styles
.
maxSequences
}
>
of 30
</
span
>
<
span
className
=
{
sequenceCounterClass
}
>
{
sequencesCount
}
</
span
>
<
span
className
=
{
styles
.
maxSequences
}
>
of
{
MAX_BLAST_SEQUENCE_COUNT
}
</
span
>
</
div
>
<
SequenceSwitcher
sequenceType
=
{
sequenceType
}
...
...
src/content/app/tools/blast/utils/blastFormValidator.ts
View file @
49494801
...
...
@@ -17,7 +17,7 @@
import
{
ParsedInputSequence
}
from
'
src/content/app/tools/blast/types/parsedInputSequence
'
;
export
const
MAX_BLAST_SPECIES_COUNT
=
25
;
export
const
MAX_BLAST_SEQUENCE_COUNT
=
3
0
;
export
const
MAX_BLAST_SEQUENCE_COUNT
=
5
0
;
export
const
isBlastFormValid
=
(
species
:
string
[],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment