diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-05 10:30:19 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-05 10:30:34 -0300 |
commit | 70151490bd79d38f8064b720fc124d1774a18235 (patch) | |
tree | 3d3238bf02743d38b243581457130804939f0473 /packages/merchant-backoffice-ui/src/paths/instance/templates/update | |
parent | 493fe38a603cc7a54a9d36b235da7abad3a10a92 (diff) | |
download | wallet-core-70151490bd79d38f8064b720fc124d1774a18235.tar.xz |
fix listing, add cache invalidation, fix codec for accounts
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/update')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx | 4 | ||||
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx index e1493a870..b99549825 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx @@ -62,7 +62,7 @@ type Entity = { interface Props { onUpdate: (d: TalerMerchantApi.TemplatePatchDetails) => Promise<void>; onBack?: () => void; - template: TalerMerchantApi.TemplateDetails; + template: TalerMerchantApi.TemplateDetails & WithId; } export function UpdatePage({ template, onUpdate, onBack }: Props): VNode { @@ -187,7 +187,7 @@ export function UpdatePage({ template, onUpdate, onBack }: Props): VNode { <div class="level-left"> <div class="level-item"> <span class="is-size-4"> - {new URL(`templates/${template.otp_id}`,backendUrl.href).href} + {new URL(`templates/${template.id}`,backendUrl.href).href} </span> </div> </div> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx index 2c0c358e2..9e5099947 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx @@ -79,7 +79,7 @@ export default function UpdateTemplate({ <Fragment> <NotificationCard notification={notif} /> <UpdatePage - template={result.body} + template={{...result.body, id: tid}} onBack={onBack} onUpdate={(data) => { return lib.instance.updateTemplate(state.token, tid, data) |