Unverified Commit 49494801 authored by Ridwan Amode's avatar Ridwan Amode Committed by GitHub
Browse files

increase sequence limit to 50 (#753)

parent b9f9d00e
Pipeline #280322 passed with stages
in 5 minutes and 10 seconds
......@@ -48,6 +48,10 @@
border-radius: 100%;
font-size: 15px;
margin: 0 0.6rem 0 0.6rem;
&Error {
background-color: $red;
}
}
.maxSequences {
......
......@@ -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}
......
......@@ -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 = 30;
export const MAX_BLAST_SEQUENCE_COUNT = 50;
export const isBlastFormValid = (
species: string[],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment