feat: polish

This commit is contained in:
Johannes Millan 2025-10-14 10:30:23 +02:00
parent 16d060496e
commit 930582dc49
2 changed files with 5 additions and 5 deletions

View file

@ -149,10 +149,10 @@
}}
</button>
<button
(click)="completeAll()"
(click)="markAllAsDone()"
[disabled]="isDisableControls"
mat-button
color="primary"
mat-stroked-button
type="button"
>
<mat-icon>check</mat-icon>
@ -165,7 +165,7 @@
</button>
@if (!isMultiple && (isSingleOnToday$ | async)) {
<button
(click)="markAsDone()"
(click)="markSingleAsDone()"
[disabled]="isDisableControls"
color="primary"
mat-stroked-button

View file

@ -230,7 +230,7 @@ export class DialogViewTaskRemindersComponent implements OnDestroy {
);
}
markAsDone(): void {
markSingleAsDone(): void {
this._subs.add(
this.tasks$.pipe(first()).subscribe((tasks) => {
if (tasks.length === 1) {
@ -304,7 +304,7 @@ export class DialogViewTaskRemindersComponent implements OnDestroy {
}
}
async completeAll(): Promise<void> {
async markAllAsDone(): Promise<void> {
await this.markAllTasksAsDone();
}