1
0
Fork 0

Client: display make/quit friends according to the situation

This commit is contained in:
Chocobozzz 2016-08-23 14:43:20 +02:00
parent 0f6da32b14
commit 6be622478a

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>