Skip to content
Snippets Groups Projects
Commit f4a91046 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

The user profile is now handled by the app shell

parent 13e97a38
No related branches found
No related tags found
No related merge requests found
Pipeline #9931 passed with warnings
{
"element": "vpu-signature-profile",
"module_src": "vpu-signature-profile.js",
"routing_name": "person-profile",
"name": {
"de": "Benutzerprofil",
"en": "User profile"
},
"short_name": {
"de": "Profil",
"en": "Profile"
},
"description": {
"de": "Zeigt informationen über den Benutzer an",
"en": "Shows information about the user"
}
}
\ No newline at end of file
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
"routing_name": "signature", "routing_name": "signature",
"activities": [ "activities": [
{"path": "vpu-welcome.metadata.json"}, {"path": "vpu-welcome.metadata.json"},
{"path": "vpu-signature-pdf-upload.metadata.json"}, {"path": "vpu-signature-pdf-upload.metadata.json"}
{"path": "vpu-signature-profile.metadata.json",
"visible": false}
], ],
"attributes": [] "attributes": []
} }
\ No newline at end of file
...@@ -143,7 +143,6 @@ export default { ...@@ -143,7 +143,6 @@ export default {
input: (build != 'test') ? [ input: (build != 'test') ? [
'src/vpu-signature.js', 'src/vpu-signature.js',
'src/vpu-signature-pdf-upload.js', 'src/vpu-signature-pdf-upload.js',
'src/vpu-signature-profile.js',
'src/vpu-welcome.js', 'src/vpu-welcome.js',
] : glob.sync('test/**/*.js'), ] : glob.sync('test/**/*.js'),
output: { output: {
......
import {createI18nInstance} from './i18n.js';
import {css, html} from 'lit-element';
import VPUSignatureLitElement from "./vpu-signature-lit-element";
import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles';
import 'vpu-person-profile';
const i18n = createI18nInstance();
class SignatureProfile extends VPUSignatureLitElement {
constructor() {
super();
this.lang = i18n.language;
this._personId = window.VPUPersonId;
this.entryPointUrl = commonUtils.getAPiUrl();
}
static get properties() {
return {
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
_personId: {type: String, attribute: false},
};
}
connectedCallback() {
super.connectedCallback();
window.addEventListener("vpu-auth-person-init", () => {
this._personId = window.VPUPersonId;
});
}
static get styles() {
// language=css
return css`
${commonStyles.getThemeCSS()}
${commonStyles.getGeneralCSS()}
`;
}
render() {
return html`
<vpu-person-profile value="${this._personId}" entry-point-url="${this.entryPointUrl}"" lang="${this.lang}"></vpu-person-profile>
`;
}
}
commonUtils.defineCustomElement('vpu-signature-profile', SignatureProfile);
Subproject commit 0fdb2d6ba4f06ae9bc5bd45915698bd608e06fab Subproject commit 800e83039641262a503dac6596925ce6200b4776
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment