Skip to content

Commit

Permalink
Use a badge instead of a button
Browse files Browse the repository at this point in the history
  • Loading branch information
laxsrbija committed Jan 16, 2024
1 parent d3d49d4 commit 2992334
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<div class="my-3 p-3 bg-body rounded shadow-sm">

<div class="container px-0 pt-1 mb-2">
<div class="container px-0 pt-0">
<div class="row">
<div class="col">
<h6 class="pt-1 text-muted">{{ sectionTitle }}</h6>
<h6 class="text-muted">{{ sectionTitle }}</h6>
</div>
<div class="col-auto" *ngIf="tasks === undefined">
<button type="button" class="btn btn-outline-secondary btn-sm"
(click)="requestDataAction.emit()">
<span class="badge text-bg-light" (click)="requestDataAction.emit()"
style="cursor: pointer">
<i class="bi bi-arrow-repeat"></i>
Load tasks
</button>
</span>
</div>
</div>
</div>

<h5 *ngIf="tasks?.length === 0">
<h5 *ngIf="tasks?.length === 0" class="mt-2">
<i class="bi bi-stars text-warning"></i>
No tasks
</h5>

<div *ngIf="tasks && tasks.length > 0" class="container">
<div *ngIf="tasks && tasks.length > 0" class="container mt-2">

<div class="row align-items-center py-3"
[class.border-bottom]="tasks && indexOfTask !== tasks.length - 1"
Expand Down

0 comments on commit 2992334

Please sign in to comment.