web: fix download button for SAML Metadata download
This commit is contained in:
parent
f8ba623fc1
commit
baa2ed5ecc
|
@ -54,6 +54,7 @@ class MetadataImportView(LoginRequiredMixin, FormView):
|
||||||
|
|
||||||
form_class = SAMLProviderImportForm
|
form_class = SAMLProviderImportForm
|
||||||
template_name = "providers/saml/import.html"
|
template_name = "providers/saml/import.html"
|
||||||
|
success_url = ""
|
||||||
|
|
||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
if not request.user.is_superuser:
|
if not request.user.is_superuser:
|
||||||
|
|
|
@ -128,7 +128,7 @@ export class SAMLProviderViewPage extends Page {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-c-card__footer">
|
<div class="pf-c-card__footer">
|
||||||
<a class="pf-c-button pf-m-primary" target="_blank" href="${SAMLProvider.appUrl(`${this.provider.name}/metadata/`)}">
|
<a class="pf-c-button pf-m-primary" target="_blank" href="${SAMLProvider.appUrl(`${this.provider.assigned_application_slug}/metadata/`)}">
|
||||||
${gettext("Download")}
|
${gettext("Download")}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue