File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" />
You can’t perform that action at this time.
0 commit comments