-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3035 - Enable Application Saving on Page Change #4001
#3035 - Enable Application Saving on Page Change #4001
Conversation
!isFirstPage.value && | ||
!submittingApplication.value | ||
) { | ||
saveDraft(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing await.
There is an outstanding question in the ticket to confirm whether the toast notification should be disabled while automatically saving the draft? |
- Added the code logic to only save draft application when there is a change to the payload - Boolean check to not allow the saving happening again while a draft save is in progress
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/student/financial-aid-application/FullTimeApplication.vue
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes. Looks Good.
@@ -300,7 +300,7 @@ export default defineComponent({ | |||
|
|||
const pageChanged = async ( | |||
isInFirstPage: boolean, | |||
currentPage: number, | |||
_: number, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend _currentPage
const isFirstPage = ref(true); | ||
const isLastPage = ref(false); | ||
const isReadOnly = ref(false); | ||
const notDraft = ref(false); | ||
const existingApplication = ref({} as ApplicationDataAPIOutDTO); | ||
const editApplicationModal = ref({} as ModalDialog<boolean>); | ||
const conditionsAccepted = ref(false); | ||
// automaticDraftSaveInProgress boolean ensures that multiple api calls for save |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// automaticDraftSaveInProgress is a boolean...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a minor comment.
Quality Gate passedIssues Measures |
As a part of this PR, the following is achieved:
Video illustrating the PR work:
2024-12-02.15-18-21.mp4