web: fix flow download link

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-10 21:47:40 +02:00
parent e25f6aea8c
commit 8ddcf99bf7
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ export class FlowListPage extends TablePage<Flow> {
}}>
${t`Execute`}
</button>
<a class="pf-c-button pf-m-secondary" href=${flow.exportUrl}>
<a class="pf-c-button pf-m-secondary" href=${item.exportUrl}>
${t`Export`}
</a>`,
];

View file

@ -163,7 +163,7 @@ export class SAMLProviderViewPage extends LitElement {
<ak-action-button
class="pf-m-secondary"
.apiRequest=${() => {
const fullUrl = window.location.origin + this.provider.metadataDownloadUrl;
const fullUrl = window.location.origin + this.provider?.metadataDownloadUrl;
return navigator.clipboard.writeText(fullUrl);
}}>
${t`Copy download URL`}