mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-12 03:14:20 +01:00
msgCenter component, profilePicture pipe, images migration
This commit is contained in:
parent
bfe60df201
commit
9b9ea045f0
105 changed files with 24259 additions and 17 deletions
11
src/app/theme/pipes/image/profile-picture.pipe.ts
Normal file
11
src/app/theme/pipes/image/profile-picture.pipe.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import {Pipe, PipeTransform} from 'angular2/core';
|
||||
import {layoutPaths} from '../../theme.constants';
|
||||
|
||||
@Pipe({name: 'profilePicture'})
|
||||
export class ProfilePicturePipe implements PipeTransform {
|
||||
|
||||
transform(input: string, args:string[]): string {
|
||||
let ext = args[0] || 'png';
|
||||
return layoutPaths.images.profile + input + '.' + ext;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue