Skip to content

Commit 5186927

Browse files
authored
Merge pull request #1636 from CSCfi/CSCTTV-3155
CSCTTV-3155
2 parents f52aace + 61b5787 commit 5186927

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/app/mydata/components/profile/profile.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1 class="col-12 px-0">
3131
<app-primary-action-button class="col-auto"i18n-content="@@publishEllipsis" content="Julkaise..." (click)="openDialog(publishUpdatedProfile,publishUpdatedProfileTemplate,dataToPublishTemplate,publishUpdatedProfileDialogActions,false)"></app-primary-action-button>
3232

3333
<!-- Discard draft -->
34-
<button class="col-auto pe-lg-0" mat-button color="primary" i18n="@@discardChanges" (click)="openDialog(discardChanges, discardChangesTemplate, discardChangesActions, undefined, false)">
34+
<button class="col-auto pe-lg-0" mat-button color="primary" i18n="@@discardChanges" (click)="openDialog(discardChanges, discardChangesTemplate, undefined, discardChangesActions, false)">
3535
Hylkää muutokset...
3636
</button>
3737

src/app/mydata/components/profile/profile.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,10 @@ export class ProfileComponent implements OnInit, OnDestroy {
463463

464464
private async pollProfile() {
465465
let response;
466-
const retries = [2000, 2000, 2000, 22000];
466+
const delays = [2000, 2000, 2000, 22000];
467467

468-
for (const retry of retries) {
469-
await lastValueFrom(timer(retry));
470-
this.updatePerson();
468+
for (const delay of delays) {
469+
await lastValueFrom(timer(delay));
471470
response = await lastValueFrom(this.updatePerson());
472471

473472
if (response != null) { return; }

0 commit comments

Comments
 (0)