mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4911] migrate identity role service (#5096)
* migrate IdentityRoleService implementation * update unit tests * move interfaces to the origin * move models to proper places * migrate model to interface * fix test * update docs
This commit is contained in:
committed by
Eugenio Romano
parent
3fc9390666
commit
f731988ca6
@@ -18,7 +18,7 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
||||
import { UserProcessModel } from '../models/user-process.model';
|
||||
import { EcmUserModel } from '../userinfo/models/ecm-user.model';
|
||||
import { EcmUserModel } from '../models/ecm-user.model';
|
||||
|
||||
@Pipe({
|
||||
name: 'usernameInitials'
|
||||
@@ -37,7 +37,7 @@ export class InitialUsernamePipe implements PipeTransform {
|
||||
return safeHtml;
|
||||
}
|
||||
|
||||
getInitialUserName(firstName: string, lastName: string, delimiter: string) {
|
||||
getInitialUserName(firstName: string, lastName: string, delimiter: string): string {
|
||||
firstName = (firstName ? firstName[0] : '');
|
||||
lastName = (lastName ? lastName[0] : '');
|
||||
return firstName + delimiter + lastName;
|
||||
|
Reference in New Issue
Block a user