More webapp changes+fixes
This commit is contained in:
@@ -150,7 +150,21 @@
|
||||
</nz-card>
|
||||
|
||||
@if (isOwner()) {
|
||||
<nz-card nzTitle="Subscriptions" class="mt-16">
|
||||
<nz-card nzTitle="Subscriptions" [nzExtra]="subscriptionsCardExtra" class="mt-16">
|
||||
<ng-template #subscriptionsCardExtra>
|
||||
@if (expertMode()) {
|
||||
<button
|
||||
nz-button
|
||||
nzSize="small"
|
||||
[nzType]="isUserSubscribed() ? 'default' : 'primary'"
|
||||
nz-tooltip
|
||||
[nzTooltipTitle]="isUserSubscribed() ? 'Unsubscribe' : 'Subscribe'"
|
||||
(click)="toggleSelfSubscription()"
|
||||
>
|
||||
<span nz-icon [nzType]="isUserSubscribed() ? 'user-delete' : 'user-add'"></span>
|
||||
</button>
|
||||
}
|
||||
</ng-template>
|
||||
<nz-table
|
||||
#subscriptionTable
|
||||
[nzData]="subscriptions()"
|
||||
@@ -164,6 +178,7 @@
|
||||
<tr>
|
||||
<th>Subscriber</th>
|
||||
<th nzWidth="0">Status</th>
|
||||
<th nzWidth="0">Active</th>
|
||||
<th nzWidth="0">Created</th>
|
||||
<th nzWidth="0">Actions</th>
|
||||
</tr>
|
||||
@@ -184,6 +199,13 @@
|
||||
</nz-tag>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a class="cell-link" [routerLink]="['/subscriptions', sub.subscription_id]">
|
||||
<nz-tag [nzColor]="sub.active ? 'green' : 'default'">
|
||||
{{ sub.active ? 'Active' : 'Inactive' }}
|
||||
</nz-tag>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a class="cell-link" [routerLink]="['/subscriptions', sub.subscription_id]">
|
||||
<div class="timestamp-absolute">{{ sub.timestamp_created | date:'yyyy-MM-dd HH:mm:ss' }}</div>
|
||||
@@ -234,7 +256,7 @@
|
||||
</tr>
|
||||
} @empty {
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<td colspan="5">
|
||||
<nz-empty nzNotFoundContent="No subscriptions"></nz-empty>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user