Fix user and poster not showing in vouchers
This commit is contained in:
1 parent
4f89cd1161
commit
5cfa02a6ef
18 files changed
+163
-33
No files matched your search
@@ -182,9 +182,9 @@
|
||||
<span class="flex">
|
||||
Created on <strong>{{ form.creationDate().value() | localTime }}</strong
|
||||
> and Last Edited on <strong>{{ form.lastEditDate().value() | localTime }}</strong
|
||||
> by <strong>{{ form.userName() }}</strong
|
||||
> by <strong>{{ form.userName().value().name }}</strong
|
||||
>.
|
||||
{{ form.posted() ? 'Posted by ' + form.poster() : '' }}
|
||||
{{ form.posted().value() ? 'Posted by ' + form.poster().value() : '' }}
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@ export interface PaymentFormModel {
|
||||
posted: boolean;
|
||||
creationDate: string;
|
||||
lastEditDate: string;
|
||||
userName: string;
|
||||
userName: User;
|
||||
poster: string;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ export class PaymentComponent {
|
||||
posted: voucher.posted,
|
||||
creationDate: voucher.creationDate,
|
||||
lastEditDate: voucher.lastEditDate,
|
||||
userName: voucher.user?.name ?? '',
|
||||
userName: voucher.user ?? new User(),
|
||||
poster: voucher.poster ?? '',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user