diff --git a/src/app/manageStakeholders/manageStakeholders.component.html b/src/app/manageStakeholders/manageStakeholders.component.html index 6760158..959a0f5 100644 --- a/src/app/manageStakeholders/manageStakeholders.component.html +++ b/src/app/manageStakeholders/manageStakeholders.component.html @@ -130,4 +130,11 @@ - + +
+ +
+
+ This stakeholder will permanently be deleted. Are you sure you want to proceed? +
+
diff --git a/src/app/manageStakeholders/manageStakeholders.component.ts b/src/app/manageStakeholders/manageStakeholders.component.ts index 0138f78..6387325 100644 --- a/src/app/manageStakeholders/manageStakeholders.component.ts +++ b/src/app/manageStakeholders/manageStakeholders.component.ts @@ -26,6 +26,7 @@ export class ManageStakeholdersComponent implements OnInit, OnDestroy { public properties: EnvProperties; public loading: boolean = true; + public deleteLoading: boolean = false; public stakeholderUtils: StakeholderUtils = new StakeholderUtils(); public defaultStakeholders: Stakeholder[]; public stakeholders: Stakeholder[]; @@ -207,11 +208,13 @@ export class ManageStakeholdersComponent implements OnInit, OnDestroy { this.deleteStakeholderModal.alertTitle = 'Delete ' + this.stakeholder.index_name; this.deleteStakeholderModal.cancelButtonText = 'No'; this.deleteStakeholderModal.okButtonText = 'Yes'; - this.deleteStakeholderModal.message = 'This stakeholder will permanently be deleted. Are you sure you want to proceed?'; + this.deleteStakeholderModal.alertMessage = false; + this.deleteStakeholderModal.stayOpen = true; this.deleteStakeholderModal.open(); } public deleteStakeholder() { + this.deleteLoading = true; if (!this.stakeholder.defaultId) { this.index = (this.stakeholder) ? this.defaultStakeholders.findIndex(value => value._id === this.stakeholder._id) : -1; } else { @@ -229,12 +232,16 @@ export class ManageStakeholdersComponent implements OnInit, OnDestroy { this.stakeholders.splice(this.index, 1); } this.alias = this.alias.filter(item => item !== this.stakeholder.alias); + this.deleteLoading = false; + this.deleteStakeholderModal.cancel(); }, error => { UIkit.notification('An error has occurred. Please try again later', { status: 'danger', timeout: 6000, pos: 'bottom-right' }); + this.deleteLoading = false; + this.deleteStakeholderModal.cancel(); })); } diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 6a7559a..a332262 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 6a7559a3ad226e25eeea9c39cb62fa960438d6ef +Subproject commit a33226250b979be5b004e18ac9c49c67f22a7400 diff --git a/src/app/topic/indicators.component.html b/src/app/topic/indicators.component.html index d6eeef9..f16eb7a 100644 --- a/src/app/topic/indicators.component.html +++ b/src/app/topic/indicators.component.html @@ -217,13 +217,16 @@ -
+ [large]="true" classTitle="uk-background-primary uk-light" + (alertOutput)="saveIndicator()" + [okDisabled]="numberIndicatorFb && (numberIndicatorFb.invalid || numberIndicatorFb.pristine)"> +
+ +
+
-
-
+ [okDisabled]="chartIndicatorFb && (chartIndicatorFb.invalid || chartIndicatorFb.pristine)"> +
+ +
+
-
- You are about to delete - "{{indicator.name ? indicator.name : indicator.indicatorPaths[0].parameters.title}}" indicator permanently. -
- Indicators of all profiles based on this default indicator, will be deleted as well. -
- - - - Are you sure you want to proceed? -
+
+ +
+
+ You are about to delete + "{{indicator.name ? indicator.name : indicator.indicatorPaths[0].parameters.title}}" indicator permanently. +
+ Indicators of all profiles based on this default indicator, will be deleted as well. +
+ + + + Are you sure you want to proceed? +
+
- You are about to delete this section and its indicators permanently. -
- Sections of all profiles based on this default section and their contents, will be deleted as well. -
- - - - Are you sure you want to proceed? +
+ +
+
+ You are about to delete this section and its indicators permanently. +
+ Sections of all profiles based on this default section and their contents, will be deleted as well. +
+ + + + Are you sure you want to proceed? +