max 20 signer parties

pull/217/head
Pete Matsyburka 2 years ago
parent f8b24ebfce
commit 843f6c405f

@ -254,7 +254,9 @@ export default {
'border-purple-600/80', 'border-purple-600/80',
'border-pink-500/80', 'border-pink-500/80',
'border-cyan-500/80', 'border-cyan-500/80',
'border-orange-500/80' 'border-orange-500/80',
'border-lime-500/80',
'border-indigo-500/80'
] ]
}, },
bgColors () { bgColors () {
@ -276,7 +278,9 @@ export default {
'bg-purple-100/80', 'bg-purple-100/80',
'bg-pink-100/80', 'bg-pink-100/80',
'bg-cyan-100/80', 'bg-cyan-100/80',
'bg-orange-100/80' 'bg-orange-100/80',
'bg-lime-100/80',
'bg-indigo-100/80'
] ]
}, },
isSelected () { isSelected () {

@ -67,7 +67,7 @@
</button> </button>
</a> </a>
</li> </li>
<li v-if="submitters.length < 18 && editable"> <li v-if="submitters.length < names.length && editable">
<a <a
href="#" href="#"
class="flex px-2" class="flex px-2"
@ -145,7 +145,7 @@
<a <a
href="#" href="#"
class="flex px-2 group justify-between items-center" class="flex px-2 group justify-between items-center"
:class="{ 'active': submitter === selectedSubmitter, 'py-1': submitters.length > 8 }" :class="{ 'active': submitter === selectedSubmitter, 'py-0.5': submitters.length > 8 }"
@click.prevent="selectSubmitter(submitter)" @click.prevent="selectSubmitter(submitter)"
> >
<span class="py-1 flex items-center"> <span class="py-1 flex items-center">
@ -189,7 +189,7 @@
</div> </div>
</a> </a>
</li> </li>
<li v-if="submitters.length < 18 && editable && allowAddNew"> <li v-if="submitters.length < names.length && editable && allowAddNew">
<a <a
href="#" href="#"
class="flex px-2" class="flex px-2"
@ -285,7 +285,9 @@ export default {
'bg-purple-600', 'bg-purple-600',
'bg-pink-500', 'bg-pink-500',
'bg-cyan-500', 'bg-cyan-500',
'bg-orange-500' 'bg-orange-500',
'bg-lime-500',
'bg-indigo-500'
] ]
}, },
names () { names () {
@ -307,7 +309,9 @@ export default {
this.t('fifteenth_party'), this.t('fifteenth_party'),
this.t('sixteenth_party'), this.t('sixteenth_party'),
this.t('seventeenth_party'), this.t('seventeenth_party'),
this.t('eighteenth_party') this.t('eighteenth_party'),
this.t('nineteenth_party'),
this.t('twentieth_party')
] ]
}, },
selectedSubmitter () { selectedSubmitter () {

@ -40,6 +40,8 @@ const en = {
sixteenth_party: 'Sixteenth Party', sixteenth_party: 'Sixteenth Party',
seventeenth_party: 'Seventeenth Party', seventeenth_party: 'Seventeenth Party',
eighteenth_party: 'Eighteenth Party', eighteenth_party: 'Eighteenth Party',
nineteenth_party: 'Nineteenth Party',
twentieth_party: 'Twentieth Party',
add: 'Add', add: 'Add',
or_add_field_without_drawing: 'Or add field without drawing', or_add_field_without_drawing: 'Or add field without drawing',
text: 'Text', text: 'Text',

Loading…
Cancel
Save