Client: display make/quit friends according to the situation

pull/10/head
Chocobozzz 2016-08-23 14:43:20 +02:00
parent 0f6da32b14
commit 6be622478a
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@
</tbody>
</table>
<a class="add-user btn btn-danger pull-left" (click)="quitFriends()">
<a *ngIf="friends?.length !== 0" class="add-user btn btn-danger pull-left" (click)="quitFriends()">
Quit friends
</a>
<a class="add-user btn btn-success pull-right" [routerLink]="['/admin/friends/add']">
<a *ngIf="friends?.length === 0" class="add-user btn btn-success pull-right" [routerLink]="['/admin/friends/add']">
Make friends
</a>