Skip to content

Commit

Permalink
Merge pull request #210 from bcgov/bug/intake-applied-permits
Browse files Browse the repository at this point in the history
Submission Intake Form - bugs in proponent entered applied permits
  • Loading branch information
kyle1morel authored Dec 4, 2024
2 parents cc9b501 + bcc9614 commit 9fe83f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,15 @@ onBeforeMount(async () => {
if (draftId) {
response = (await submissionService.getDraft(draftId)).data;
initialFormValues.value = { ...response.data, activityId: response.activityId };
initialFormValues.value = {
...response.data,
activityId: response.activityId,
appliedPermits: response.data.appliedPermits.map((x: Partial<Permit>) => ({
...x,
statusLastVerified: x.statusLastVerified ? new Date(x.statusLastVerified) : undefined
}))
};
if (response.activityId) {
documents = (await documentService.listDocuments(response.activityId)).data;
Expand Down Expand Up @@ -1549,6 +1557,7 @@ onBeforeMount(async () => {
:name="`appliedPermits[${idx}].statusLastVerified`"
:disabled="!editable"
placeholder="Status last verified"
:max-date="new Date()"
/>
<div class="flex align-items-center ml-2 mb-3">
<Button
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/views/permit/PermitStatusView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,6 @@ onBeforeMount(async () => {
icon="fa-circle-question"
@click="descriptionModalVisible = true"
/>
<!-- <div :onclick="(descriptionModalVisible = true)">
<font-awesome-icon
class="status-description-icon"
icon="fa-circle-question"
/>
</div> -->
</div>
<div class="status-verified-message">
<div v-if="permit?.statusLastVerified">
Expand Down

0 comments on commit 9fe83f9

Please sign in to comment.