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`} ${t`Execute`}
</button> </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`} ${t`Export`}
</a>`, </a>`,
]; ];

View File

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