increase the maximum number of submitters to 10

pull/133/head
Alex Turchyn 2 years ago
parent 8e1354175f
commit 41ee2dba6a

@ -189,7 +189,12 @@ export default {
'border-sky-500', 'border-sky-500',
'border-emerald-500', 'border-emerald-500',
'border-yellow-300', 'border-yellow-300',
'border-purple-600' 'border-purple-600',
'border-pink-500',
'border-cyan-500',
'border-orange-500',
'border-lime-500',
'border-indigo-500'
] ]
}, },
bgColors () { bgColors () {
@ -198,7 +203,12 @@ export default {
'bg-sky-100', 'bg-sky-100',
'bg-emerald-100', 'bg-emerald-100',
'bg-yellow-100', 'bg-yellow-100',
'bg-purple-100' 'bg-purple-100',
'bg-pink-100',
'bg-cyan-100',
'bg-orange-100',
'bg-lime-100',
'bg-indigo-100'
] ]
}, },
isSelected () { isSelected () {

@ -70,7 +70,7 @@
</button> </button>
</a> </a>
</li> </li>
<li v-if="submitters.length < 5"> <li v-if="submitters.length < 10">
<a <a
href="#" href="#"
class="flex px-2" class="flex px-2"
@ -130,7 +130,12 @@ export default {
'bg-sky-500', 'bg-sky-500',
'bg-emerald-500', 'bg-emerald-500',
'bg-yellow-300', 'bg-yellow-300',
'bg-purple-600' 'bg-purple-600',
'bg-pink-500',
'bg-cyan-500',
'bg-orange-500',
'bg-lime-500',
'bg-indigo-500'
] ]
}, },
names () { names () {
@ -139,7 +144,12 @@ export default {
'Second Submitter', 'Second Submitter',
'Third Submitter', 'Third Submitter',
'Fourth Submitter', 'Fourth Submitter',
'Fifth Submitter' 'Fifth Submitter',
'Sixth Submitter',
'Seventh Submitter',
'Eighth Submitter',
'Ninth Submitter',
'Tenth Submitter'
] ]
}, },
selectedSubmitter () { selectedSubmitter () {

@ -66,7 +66,7 @@
</div> </div>
</div> </div>
<div class="hidden md:block relative w-80 flex-none pt-0.5 pr-4 pl-0.5 overflow-auto space"> <div class="hidden md:block relative w-80 flex-none pt-0.5 pr-4 pl-0.5 overflow-auto space">
<% colors = %w[bg-red-500 bg-sky-500 bg-emerald-500 bg-yellow-300 bg-purple-600] %> <% colors = %w[bg-red-500 bg-sky-500 bg-emerald-500 bg-yellow-300 bg-purple-600 bg-pink-500 bg-cyan-500 bg-orange-500 bg-lime-500 bg-indigo-500] %>
<% submitter_fields_index = (@submission.template_fields || @submission.template.fields).group_by { |f| f['submitter_uuid'] } %> <% submitter_fields_index = (@submission.template_fields || @submission.template.fields).group_by { |f| f['submitter_uuid'] } %>
<% (@submission.template_submitters || @submission.template.submitters).each_with_index do |item, index| %> <% (@submission.template_submitters || @submission.template.submitters).each_with_index do |item, index| %>
<% submitter = @submission.submitters.find { |e| e.uuid == item['uuid'] } %> <% submitter = @submission.submitters.find { |e| e.uuid == item['uuid'] } %>

Loading…
Cancel
Save