Skip to content

Commit 4600d69

Browse files
committed
fix manager sync error and failed states && fix hanging div
1 parent 374fcb2 commit 4600d69

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/app/manager-dashboard/manager-sync.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ <h3 matListItemTitle>
2323
<span matListItemMeta>
2424
@switch (rep?.state) {
2525
<!-- States: initializing, failed, error, running, pending, crashing, completed -->
26-
@case ('crashing' || 'error' || 'failed') {
26+
@case ('crashing') {
27+
<mat-icon class="warn-text-color" i18n-title title="Error">error</mat-icon>
28+
}
29+
@case ('error') {
30+
<mat-icon class="warn-text-color" i18n-title title="Error">error</mat-icon>
31+
}
32+
@case ('failed') {
2733
<mat-icon class="warn-text-color" i18n-title title="Error">error</mat-icon>
2834
}
2935
@case ('running') {

src/app/shared/calendar.component.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ import { FullCalendarModule } from '@fullcalendar/angular';
2626
@if (showLegend) {
2727
<div class="calendar-legend">
2828
@for (legend of eventLegend; track legend) {
29-
<div>
30-
@if (!legend.type || legend.type === type) {
31-
<div class="legend-item">
32-
<div class="legend-color" [style.backgroundColor]="legend.color"></div>
33-
<span>{{ legend.label }}</span>
34-
</div>
35-
}
36-
</div>
29+
@if (!legend.type || legend.type === type) {
30+
<div class="legend-item">
31+
<div class="legend-color" [style.backgroundColor]="legend.color"></div>
32+
<span>{{ legend.label }}</span>
33+
</div>
34+
}
3735
}
3836
</div>
3937
}

0 commit comments

Comments
 (0)