|
@@ -59,10 +59,15 @@
|
|
</mat-toolbar>
|
|
</mat-toolbar>
|
|
<mat-list>
|
|
<mat-list>
|
|
<mat-list-item *ngFor="let ev of events; let idx = index" [ngStyle]="{'background-color': idx % 2 === 1 ? 'rgba(240, 240, 240, 0.5)' : 'rgba(0, 0, 0, 0)'}">
|
|
<mat-list-item *ngFor="let ev of events; let idx = index" [ngStyle]="{'background-color': idx % 2 === 1 ? 'rgba(240, 240, 240, 0.5)' : 'rgba(0, 0, 0, 0)'}">
|
|
- <mat-icon *ngIf="ev.info.direction == 'to'" mat-list-icon>archive</mat-icon>
|
|
|
|
- <mat-icon *ngIf="ev.info.direction == 'from'" mat-list-icon>unarchive</mat-icon>
|
|
|
|
|
|
+ <mat-icon *ngIf="ev.type == 'ExchangeSuccessEvent' && ev.info.direction == 'to'" mat-list-icon>archive</mat-icon>
|
|
|
|
+ <mat-icon *ngIf="ev.type == 'ExchangeSuccessEvent' && ev.info.direction == 'from'" mat-list-icon>unarchive</mat-icon>
|
|
|
|
+ <mat-icon *ngIf="ev.type == 'ExchangeFailedEvent'" mat-list-icon>error</mat-icon>
|
|
<div fxLayout="row" fxLayoutAlign="space-between center" mat-line>
|
|
<div fxLayout="row" fxLayoutAlign="space-between center" mat-line>
|
|
- <span><span *ngIf="ev.info.direction == 'to'">Пополнение</span><span *ngIf="ev.info.direction == 'from'">Списание</span></span>
|
|
|
|
|
|
+ <span>
|
|
|
|
+ <span *ngIf="ev.info.direction == 'to'">Пополнение</span>
|
|
|
|
+ <span *ngIf="ev.info.direction == 'from'">Списание</span>
|
|
|
|
+ <span *ngIf="ev.type == 'ExchangeFailedEvent'"> (ошибка)</span>
|
|
|
|
+ </span>
|
|
<span [ngStyle]="{'color': (ev.info.direction == 'from') ? 'red' : ev.info.direction == 'to' ? 'green' : 'black'}"><span *ngIf="ev.info.direction == 'to'">+</span><span *ngIf="ev.info.direction == 'from'">-</span><span>{{ev.info.amount}}</span><span>₣</span></span>
|
|
<span [ngStyle]="{'color': (ev.info.direction == 'from') ? 'red' : ev.info.direction == 'to' ? 'green' : 'black'}"><span *ngIf="ev.info.direction == 'to'">+</span><span *ngIf="ev.info.direction == 'from'">-</span><span>{{ev.info.amount}}</span><span>₣</span></span>
|
|
</div>
|
|
</div>
|
|
<div mat-line>
|
|
<div mat-line>
|
|
@@ -97,7 +102,11 @@
|
|
<mat-list-item *ngFor="let org of orgs" [routerLink]="['/privotal', {privateId: org.id}]" class="href">
|
|
<mat-list-item *ngFor="let org of orgs" [routerLink]="['/privotal', {privateId: org.id}]" class="href">
|
|
<mat-icon mat-list-icon>business</mat-icon>
|
|
<mat-icon mat-list-icon>business</mat-icon>
|
|
<div mat-line>Организация</div>
|
|
<div mat-line>Организация</div>
|
|
- <div mat-line>{{org.position}}</div>
|
|
|
|
|
|
+ <div mat-line>
|
|
|
|
+ <span *ngIf="org.position == 'owner'">вы владелец</span>
|
|
|
|
+ <span *ngIf="org.position == 'coowner'">вы совладелец</span>
|
|
|
|
+ <span *ngIf="org.position == 'unit'">вы сотрудник</span>
|
|
|
|
+ </div>
|
|
</mat-list-item>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<mat-list-item>
|
|
<button (click)="addPrivate()" mat-button>СОЗДАТЬ ОРГАНИЗАЦИЮ</button>
|
|
<button (click)="addPrivate()" mat-button>СОЗДАТЬ ОРГАНИЗАЦИЮ</button>
|