Skip to content

Commit

Permalink
finalized
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Mar 20, 2024
1 parent f63d3dc commit 399154c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/projectmanagement/modals/result/result.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export class ResultComponent implements OnInit, OnDestroy {
this.setToResultState();

this.subscription.add(
this.applicationsService
.requestModification(this.extension as ApplicationModification)
.subscribe((result: { [key: string]: string }): void => {
this.applicationsService.requestModification(this.extension as ApplicationModification).subscribe(
(result: { [key: string]: string }): void => {
if (result['Error']) {
this.extensionStatus = 2;
this.errorMessage = result['Error'];
Expand All @@ -70,7 +69,12 @@ export class ResultComponent implements OnInit, OnDestroy {
}

this.event.emit({ reload: true });
}),
},
() => {
this.extensionStatus = 2;
this.errorMessage = 'Submitting the modification request was not successful. Please reload this page and try again!';
},
),
);
}

Expand All @@ -89,6 +93,7 @@ export class ResultComponent implements OnInit, OnDestroy {
),
);
}

submitLifetimeExtensionRequest(): void {
this.setToResultState();

Expand Down

0 comments on commit 399154c

Please sign in to comment.