@valtimo/components 5.12.0 → 5.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/form-io/form-io.component.mjs +4 -1
- package/fesm2015/valtimo-components.mjs +3 -0
- package/fesm2015/valtimo-components.mjs.map +1 -1
- package/fesm2020/valtimo-components.mjs +3 -0
- package/fesm2020/valtimo-components.mjs.map +1 -1
- package/lib/components/form-io/form-io.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3670,6 +3670,8 @@ class FormioComponent {
|
|
|
3670
3670
|
.pipe(map$1(() => this.translateService.currentLang));
|
|
3671
3671
|
}
|
|
3672
3672
|
ngOnInit() {
|
|
3673
|
+
Formio.setProjectUrl(location.origin);
|
|
3674
|
+
Formio.authUrl = location.origin;
|
|
3673
3675
|
const documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName');
|
|
3674
3676
|
const documentId = this.route.snapshot.paramMap.get('documentId');
|
|
3675
3677
|
this.formDefinition = this.form;
|
|
@@ -3730,6 +3732,7 @@ class FormioComponent {
|
|
|
3730
3732
|
});
|
|
3731
3733
|
}
|
|
3732
3734
|
setToken(token) {
|
|
3735
|
+
Formio.setUser(jwt_decode(token));
|
|
3733
3736
|
Formio.setToken(token);
|
|
3734
3737
|
localStorage.setItem('formioToken', token);
|
|
3735
3738
|
this.setTimerForTokenRefresh(token);
|