Skip to content

Commit

Permalink
feat(Termination):added modal with feedback survey link
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Dec 5, 2024
1 parent 6cd0a8e commit e84a2d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/projectmanagement/overview.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ <h3>
Request termination
</button>
<button
(click)="terminateModal.show()"
*ngIf="
(project_application | hasstatusinlist: Application_States.TERMINATION_REQUESTED) ||
(project_application | hasstatusinlist: Application_States.WAIT_FOR_TERMINATION_FM)
Expand Down
16 changes: 14 additions & 2 deletions src/app/projectmanagement/overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import {
SIMPLE_VM_LINK,
STATUS_LINK,
WIKI_PUBLICATIONS,
KUBERNETES_LINK
KUBERNETES_LINK,
TERMINATION_SURVEY_LINK
} from '../../links/links'
import { Doi } from '../applications/doi/doi'
import { Application_States, ExtensionRequestType } from '../shared/shared_modules/baseClass/abstract-base-class'
Expand Down Expand Up @@ -392,8 +393,19 @@ export class OverviewComponent extends ApplicationBaseClassComponent implements
}

showTerminationModal(): void {
this.terminationRequestComponent.showTerminationRequestModal(this.project_application).subscribe(() => {

this.terminationRequestComponent.showTerminationRequestModal(this.project_application).subscribe(() => {

Check failure on line 397 in src/app/projectmanagement/overview.component.ts

View workflow job for this annotation

GitHub Actions / tslinting-check

Expected indentation of 2 tabs but found 1
this.getApplication()
this.notificationModal.showWarningNotificationModal(
"Feedback Survey",
`
<div>
<p>Thank you for using the de.NBI Cloud for your recent project!</p>
<p>We would appreciate your feedback to enhance our services. Please take a few moments to complete our short survey:</p>
<p><strong><a href="${TERMINATION_SURVEY_LINK}">Survey Link</a></strong></p>
</div>
`
)

Check failure on line 408 in src/app/projectmanagement/overview.component.ts

View workflow job for this annotation

GitHub Actions / tslinting-check

Expected indentation of 3 tabs but found 4
})
}

Expand Down
1 change: 1 addition & 0 deletions src/links/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const SCALING_UP_WIKI: string = `${environment.SIMPLEVM_WIKI_PRE}simple_v
export const CREDITS_WIKI: string = `${environment.WIKI_PRE}portal/credits/`
export const WIKI_PERSONAL_DATA: string = `${environment.WIKI_PRE}portal/personal_data`
export const SURVEY_LINK: string = 'https://cloud.denbi.de/survey/index.php/252136?lang=en'
export const TERMINATION_SURVEY_LINK: string= 'https://cloud.denbi.de/survey/index.php/823721?lang=en'
export const CLOUD_PORTAL_SUPPORT_MAIL = '[email protected]'
export const POLICY_LINK: string = 'https://cloud.denbi.de/about/policies/'
export const SIMPLE_VM_LINK: string = 'https://cloud.denbi.de/about/project-types/simplevm/'
Expand Down

0 comments on commit e84a2d1

Please sign in to comment.