diff --git a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html index a55c0b00a..19d907c82 100644 --- a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html +++ b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html @@ -8,9 +8,12 @@
{{message}}
diff --git a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts index 10d32db43..ddf0bfd7c 100644 --- a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts +++ b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts @@ -1,6 +1,6 @@ import { Component, EventEmitter, Input, Output } from '@angular/core' import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap' -import { Subject } from 'rxjs' +import { interval, Subject, switchMap, take } from 'rxjs' @Component({ selector: 'app-confirm-dialog', @@ -33,19 +33,28 @@ export class ConfirmDialogComponent { confirmButtonEnabled = true seconds = 0 + secondsTotal = 0 confirmSubject: Subject