refactor: update openstapps/api

This commit is contained in:
Rainer Killinger
2021-02-23 12:34:31 +01:00
parent ccf8b1a5cc
commit e9978a2d93
5 changed files with 801 additions and 689 deletions

View File

@@ -116,7 +116,7 @@ export class ContextMenuComponent {
getTranslatedPropertyName(property: string, onlyForType?: SCThingType): string {
return (this.translator
// tslint:disable-next-line:no-any
.translatedPropertyNames(typeof onlyForType !== 'undefined' ? onlyForType : SCThingType.AcademicEvent) as any)[property];
.translatedPropertyNames(onlyForType ?? SCThingType.AcademicEvent) as any)[property];
}
/**