Commit 0a9f27bc authored by Dirk Luijk's avatar Dirk Luijk

Small improvements... must go sleep now

parent 850a24b2
<h3 class="mb-4">Messages</h3>
<h3 class="mb-4">Log</h3>
<div *ngIf="messages.length === 0">No messages.</div>
<div *ngIf="messages.length === 0">No log entries.</div>
<div *ngIf="messages.length > 0">
<code style="overflow: hidden" [@slide]="messages.length">
......@@ -8,6 +8,6 @@
{{ message.time | date: 'mediumTime' }} - {{ message.text }}
</p>
</code>
<button class="btn btn-secondary btn-sm" (click)="clear()">Clear messages</button>
<button class="btn btn-secondary btn-sm" (click)="clear()">Clear log</button>
</div>
......@@ -14,7 +14,7 @@ export class TransactionService {
constructor(private http: HttpClient, private messageService: MessageService) {}
getTransactions(): Observable<Transaction[]> {
this.log('Fetching transactions...');
this.log('Fetching pending transactions...');
return this.http.get<Transaction[]>('/api/pendingtransactions')
.do(transactions => this.log(`Got ${transactions.length} transactions`));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment