[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:
Denys Vuika
2019-10-10 10:25:57 +01:00
committed by Eugenio Romano
parent 3fc9390666
commit f731988ca6
32 changed files with 440 additions and 229 deletions

View File

@@ -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;