Skip to content

Commit 9f141f9

Browse files
committed
removed if (applicationForm.value.questions.length >= 5) return
1 parent 5b42a42 commit 9f141f9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

app/pages/dashboard/jobs/new.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ function handleAddQuestion(data: {
133133
required: boolean
134134
options?: string[]
135135
}) {
136-
if (applicationForm.value.questions.length >= 5) return
137-
138136
applicationForm.value.questions.push({
139137
id: `draft-${nextQuestionId.value++}`,
140138
label: data.label,
@@ -649,8 +647,7 @@ const questionTypeLabels: Record<QuestionType, string> = {
649647
<button
650648
v-if="!showAddForm && !editingQuestion"
651649
type="button"
652-
:disabled="applicationForm.questions.length >= 5"
653-
class="inline-flex items-center gap-1.5 rounded-lg border border-dashed border-surface-300 dark:border-surface-700 px-3 py-2 text-sm font-medium text-surface-600 dark:text-surface-400 hover:border-brand-400 dark:hover:border-brand-600 hover:text-brand-600 dark:hover:text-brand-400 hover:bg-brand-50 dark:hover:bg-brand-950 transition-colors disabled:opacity-50"
650+
class="inline-flex items-center gap-1.5 rounded-lg border border-dashed border-surface-300 dark:border-surface-700 px-3 py-2 text-sm font-medium text-surface-600 dark:text-surface-400 hover:border-brand-400 dark:hover:border-brand-600 hover:text-brand-600 dark:hover:text-brand-400 hover:bg-brand-50 dark:hover:bg-brand-950 transition-colors"
654651
@click="showAddForm = true"
655652
>
656653
<Plus class="size-4" />

0 commit comments

Comments
 (0)