refactor: routing
This commit is contained in:
parent
e705821d89
commit
921b6c6106
2 changed files with 10 additions and 2 deletions
|
|
@ -189,7 +189,10 @@ function triggerQuotationDialog(opts: {
|
|||
quotationId?: string;
|
||||
branchId?: string;
|
||||
}) {
|
||||
const url = new URL('/quotation/add-quotation', window.location.origin);
|
||||
const url = new URL(
|
||||
`/quotation/${opts.statusDialog === 'create' ? 'add' : 'view'}`,
|
||||
window.location.origin,
|
||||
);
|
||||
|
||||
localStorage.setItem(
|
||||
'new-quotation',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue