Add support for new back end response notes; i.e. status and response message
As the back-end won't be returning a real status code we need to parse it out of a notes field, we could potential move this logic up out of the the vue component, so that postForm returns data and extra info like status instead of just the data. I'm not sure there's any "custom" work that relies on the current API though (https://github.com/dpc-sdp/ripple/blob/develop/packages/ripple-nuxt-tide/modules/webform/mixins/index.js#L11).
Motivation and Context
JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-7052
Changed
As the back-end won't be returning a real status code we need to parse it out of a
notes
field, we could potential move this logic up out of the the vue component, so thatpostForm
returnsdata
and extra info likestatus
instead of just the data. I'm not sure there's any "custom" work that relies on the current API though (https://github.com/dpc-sdp/ripple/blob/develop/packages/ripple-nuxt-tide/modules/webform/mixins/index.js#L11).Screenshots
How Has This Been Tested?
REF: https://app.pr-1269.ripple.sdp4.sdp.vic.gov.au/esta-forms-testing
Types of changes
Checklist