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

person-profile: remove telephone and role display

This is the only place this information is used and we want to
clean up the API. Since this is more of a demo component and not
activitely used anywhere anymore just remove it.
parent 4684a77c
No related branches found
No related tags found
No related merge requests found
Pipeline #56646 passed
......@@ -4,11 +4,6 @@
"given-name": "Vorname",
"family-name": "Nachname",
"email": "Email",
"telephone": "Telefon",
"role": "Rolle",
"none-selected": "Keine Person ausgewählt",
"staff": "Mitarbeiter/in",
"alumni": "Absolvent/in",
"unknown": "unbekannt"
"none-selected": "Keine Person ausgewählt"
}
}
......@@ -4,11 +4,6 @@
"given-name": "Given name",
"family-name": "Family name",
"email": "Email",
"telephone": "Telephone",
"role": "Role",
"none-selected": "No person selected",
"staff": "staff",
"alumni": "alumni",
"unknown": "unknown"
"none-selected": "No person selected"
}
}
......@@ -78,15 +78,6 @@ export class PersonProfile extends DBPLitElement {
render() {
const i18n = this._i18n;
let role = i18n.t('person-profile.unknown');
if (this.person !== null && this.person.roles !== undefined) {
// roles are only defined for self-disclosure
if (this.person.roles.indexOf('ROLE_STAFF') > -1) {
role = i18n.t('person-profile.staff');
} else if (this.person.roles.indexOf('ROLE_ALUMNI') > -1) {
role = i18n.t('person-profile.alumni');
}
}
return html`
<style>
......@@ -105,8 +96,6 @@ export class PersonProfile extends DBPLitElement {
<tr><td class="td-profile">${i18n.t('person-profile.given-name')}</td><td>${this.person.givenName}</td></tr>
<tr><td class="td-profile">${i18n.t('person-profile.family-name')}</td><td>${this.person.familyName}</td></tr>
<tr><td class="td-profile">${i18n.t('person-profile.email')}</td><td>${this.person.email}</td></tr>
<tr><td class="td-profile">${i18n.t('person-profile.telephone')}</td><td>${this.person.telephone}</td></tr>
<tr><td class="td-profile">${i18n.t('person-profile.role')}</td><td>${role}</td></tr>
</tbody>
<tfoot></tfoot>
</table>` : i18n.t('person-profile.none-selected') }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment