Skip to content

Commit

Permalink
15092 - separate restoration endpoints in edit-ui (#465) - v5.11.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-longe authored Mar 15, 2023
1 parent 5867492 commit c07397b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-filings-ui",
"version": "5.11.4",
"version": "5.11.5",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
3 changes: 1 addition & 2 deletions src/components/Dashboard/StaffNotation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ export default class StaffNotation extends Vue {
url = `${this.getCreateUrl}?id=${this.getIdentifier}`
}
if (applicationName === ApplicationTypes.EDIT_UI) {
url = `${this.getEditUrl}${this.getIdentifier}/restoration` +
`?restoration-id=${id}`
url = `${this.getEditUrl}${this.getIdentifier}/` + restorationType + `?restoration-id=${id}`
}
navigate(url)
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StaffNotation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ describe('StaffNotation', () => {

// verify redirection
expect(window.location.assign).toHaveBeenCalledWith(
'https://edit.url/BC1234567/restoration?restoration-id=1234')
'https://edit.url/BC1234567/limitedRestorationExtension?restoration-id=1234')

wrapper.destroy()
sinon.restore()
Expand Down

0 comments on commit c07397b

Please sign in to comment.