Document generation hotfix 🐞
This commit is contained in:
parent
152e74190d
commit
b74bea0340
|
@ -5,6 +5,8 @@ const config = {
|
|||
baseurl: '',
|
||||
// optional, will fallback to /selfservice/
|
||||
baseurl_selfservice: '/selfservice/',
|
||||
// full url (including fqdn)
|
||||
baseurl_documentserver: 'http://localhost:4010/documents',
|
||||
// optional, will fallback to baseurl_selfservice/imprint
|
||||
url_imprint: '',
|
||||
// optional, will fallback to baseurl_selfservice/privacy
|
||||
|
|
|
@ -388,7 +388,7 @@ function delete_me() {
|
|||
function get_certificate() {
|
||||
toast("Generation in progress...");
|
||||
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
|
||||
let url = `${config.baseurl}documents/certificates?locale=${browserlocale}&download=true&key=${config.documentserver_key}`;
|
||||
let url = `${config.baseurl_documentserver}certificates?locale=${browserlocale}&download=true&key=${config.documentserver_key}`;
|
||||
let postdata = Object.assign({}, state.fullobject);
|
||||
postdata.group = {
|
||||
name: postdata.group
|
||||
|
@ -416,7 +416,7 @@ function get_certificate() {
|
|||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
toast.error("An error occured while deleting your profile data");
|
||||
toast.error("An error occured while generating your certificate");
|
||||
});
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user