diff --git a/monitor-admin/manageStakeholders/manageStakeholders.component.html b/monitor-admin/manageStakeholders/manageStakeholders.component.html index 74f005ff..cf96dbc3 100644 --- a/monitor-admin/manageStakeholders/manageStakeholders.component.html +++ b/monitor-admin/manageStakeholders/manageStakeholders.component.html @@ -1,156 +1,173 @@
-
- -
- - - - - -
-
-
-
-
-
-
-
+
+ +
+ + + + +
-
-
-
-
-
- +
+
+
+
+
+
+
+
+
+
-
-
-
-
-

Profile Templates

- - -
-
- - - -
- -
-
-
-
-

- No profiles to manage yet -

-
-
-
-

Profiles

- - -
-
- - - -
- + +
+
+
+
+
+

Profile Templates

+ + +
+
+ + + +
+ +
+
+
+
+

+ No profiles to manage yet +

+
+
+
+

Profiles

+ + +
+
+ + + +
+ -
-
-
-
+
+
+
+
+
-
-
- - -
-

- {{stakeholder.name}} -

-
-
- -
-
-
- -
-
- {{text}} -
-
+ +
+
+ {{text}} +
+
-
-
-
+
+
+
-
- -
-
- -
+ (alertOutput)="editStakeholderComponent.save(callback)" + (cancelOutput)="editStakeholderComponent.removePhoto()" + [okDisabled]="editStakeholderComponent.disabled"> +
+ +
+
+ +
-
- -
-
- This stakeholder will permanently be deleted. Are you sure you want to proceed? -
+
+ +
+
+ This stakeholder will permanently be deleted. Are you sure you want to proceed? +
diff --git a/monitor-admin/manageStakeholders/manageStakeholders.component.ts b/monitor-admin/manageStakeholders/manageStakeholders.component.ts index e27967f3..22fd4ffe 100644 --- a/monitor-admin/manageStakeholders/manageStakeholders.component.ts +++ b/monitor-admin/manageStakeholders/manageStakeholders.component.ts @@ -40,8 +40,8 @@ export class ManageStakeholdersComponent extends StakeholderBaseComponent implem /** * Filtered Stakeholders */ - public displayDefaultStakeholders: Stakeholder[]; - public displayStakeholders: Stakeholder[]; + public displayDefaultStakeholders: Stakeholder[] = []; + public displayStakeholders: Stakeholder[] = []; /** * Top filters */ diff --git a/monitor-admin/topic/indicators.component.ts b/monitor-admin/topic/indicators.component.ts index b94be019..f44fc7c5 100644 --- a/monitor-admin/topic/indicators.component.ts +++ b/monitor-admin/topic/indicators.component.ts @@ -1372,7 +1372,7 @@ export class IndicatorsComponent extends IndicatorStakeholderBaseComponent imple let topic = this.stakeholder ? this.stakeholder.topics[this.topicIndex] : null; let category = topic ? topic.categories[this.categoryIndex] : null; - let subCategory = category ? category.subCategories[this.subcategoryIndex] : null; + let subCategory = category ? category.subCategories[subcategoryIndex] : null; var jsonFileUrl = window.URL.createObjectURL(new Blob([JSON.stringify(indicators)], {type: 'application/json'})); var a = window.document.createElement('a'); diff --git a/monitor-admin/utils/adminDashboard.guard.ts b/monitor-admin/utils/adminDashboard.guard.ts index 3b366328..08d94461 100644 --- a/monitor-admin/utils/adminDashboard.guard.ts +++ b/monitor-admin/utils/adminDashboard.guard.ts @@ -8,7 +8,9 @@ import {StakeholderService} from "../../monitor/services/stakeholder.service"; import {Observable, zip} from "rxjs"; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class AdminDashboardGuard { constructor(private router: Router,