Client: display make/quit friends according to the situation
This commit is contained in:
parent
0f6da32b14
commit
6be622478a
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue