Skip to content

Commit

Permalink
max 20 signer parties
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Feb 10, 2024
1 parent f8b24eb commit 843f6c4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
8 changes: 6 additions & 2 deletions app/javascript/template_builder/area.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ export default {
'border-purple-600/80',
'border-pink-500/80',
'border-cyan-500/80',
'border-orange-500/80'
'border-orange-500/80',
'border-lime-500/80',
'border-indigo-500/80'
]
},
bgColors () {
Expand All @@ -276,7 +278,9 @@ export default {
'bg-purple-100/80',
'bg-pink-100/80',
'bg-cyan-100/80',
'bg-orange-100/80'
'bg-orange-100/80',
'bg-lime-100/80',
'bg-indigo-100/80'
]
},
isSelected () {
Expand Down
14 changes: 9 additions & 5 deletions app/javascript/template_builder/field_submitter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</button>
</a>
</li>
<li v-if="submitters.length < 18 && editable">
<li v-if="submitters.length < names.length && editable">
<a
href="#"
class="flex px-2"
Expand Down Expand Up @@ -145,7 +145,7 @@
<a
href="#"
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)"
>
<span class="py-1 flex items-center">
Expand Down Expand Up @@ -189,7 +189,7 @@
</div>
</a>
</li>
<li v-if="submitters.length < 18 && editable && allowAddNew">
<li v-if="submitters.length < names.length && editable && allowAddNew">
<a
href="#"
class="flex px-2"
Expand Down Expand Up @@ -285,7 +285,9 @@ export default {
'bg-purple-600',
'bg-pink-500',
'bg-cyan-500',
'bg-orange-500'
'bg-orange-500',
'bg-lime-500',
'bg-indigo-500'
]
},
names () {
Expand All @@ -307,7 +309,9 @@ export default {
this.t('fifteenth_party'),
this.t('sixteenth_party'),
this.t('seventeenth_party'),
this.t('eighteenth_party')
this.t('eighteenth_party'),
this.t('nineteenth_party'),
this.t('twentieth_party')
]
},
selectedSubmitter () {
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/template_builder/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const en = {
sixteenth_party: 'Sixteenth Party',
seventeenth_party: 'Seventeenth Party',
eighteenth_party: 'Eighteenth Party',
nineteenth_party: 'Nineteenth Party',
twentieth_party: 'Twentieth Party',
add: 'Add',
or_add_field_without_drawing: 'Or add field without drawing',
text: 'Text',
Expand Down

0 comments on commit 843f6c4

Please sign in to comment.