profilePicturePipe -> baProfilePicturePipe

This commit is contained in:
nixa 2016-05-18 16:55:14 +03:00
parent e3982b255e
commit 33b75eca35
10 changed files with 15 additions and 15 deletions

View file

@ -1,13 +1,13 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {ProfilePicturePipe, BaAppPicturePipe} from '../../../theme/pipes';
import {BaProfilePicturePipe, BaAppPicturePipe} from '../../../theme/pipes';
import {FeedService} from './feed.service';
@Component({
selector: 'feed',
encapsulation: ViewEncapsulation.None,
providers: [FeedService],
pipes: [ProfilePicturePipe, BaAppPicturePipe],
pipes: [BaProfilePicturePipe, BaAppPicturePipe],
styles: [require('./feed.scss')],
template: require('./feed.html')
})

View file

@ -1,10 +1,10 @@
<div class="feed-messages-container">
<div class="feed-message" *ngFor="let message of feed" (click)="expandMessage(message)">
<div class="message-icon" *ngIf="message.type == 'text-message'">
<img class="photo-icon" src="{{ ( message.author | profilePicture ) }}">
<img class="photo-icon" src="{{ ( message.author | baProfilePicture ) }}">
</div>
<div class="message-icon" *ngIf="message.type != 'text-message'">
<img class="photo-icon" src="{{ ( message.author | profilePicture ) }}">
<img class="photo-icon" src="{{ ( message.author | baProfilePicture ) }}">
<span class="sub-photo-icon" [ngClass]="message.type"></span>
</div>
<div class="text-block text-message">