Skip to content

Commit 225619d

Browse files
committed
Lock location till dept is selected
1 parent c802f89 commit 225619d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/components/inspection/CreateInspectionPage.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<v-label class="mb-1" style="white-space: inherit">Location</v-label>
5353
<InspectionLocationSelector
5454
v-model="report.inspection_location_id"
55+
:disabled="isNil(report.department_code)"
5556
:department="report.department_code"
5657
:readonly="!isNil(selectedReport)"
5758
:rules="[requiredRule]" />
@@ -117,7 +118,9 @@
117118
<v-btn class="mb-0" color="info" @click="addTaskClick">Add Hazard</v-btn>
118119
<v-spacer />
119120

120-
<v-btn class="mb-0" color="warning" @click="openConfirmationDialogAndGoToInspectionsPage">Complete Inspection</v-btn>
121+
<v-btn class="mb-0" color="warning" @click="openConfirmationDialogAndGoToInspectionsPage"
122+
>Complete Inspection</v-btn
123+
>
121124
</div>
122125
<InspectionActionList class="mt-5" @showAction="doShowActionEdit"></InspectionActionList>
123126

0 commit comments

Comments
 (0)