Files
smartguide/webapp/src/app/modules/hierarchy/hierarchy.component.html
T

72 lines
2.7 KiB
HTML

<app-page-container
[eyebrow]="'Hierarchie · ' + credentialService.organizationName()"
[title]="
suggestionsOnly() ? 'Hierarchie-Vorschläge' : 'Organisationsstruktur'
"
subtitle="Erkunde Organisationshierarchien und ihre zugehörigen Daten.">
<div class="content">
@if (!hierarchyData()) {
<div class="error">
<span>Keine Hierarchie-Daten verfügbar.</span>
</div>
} @else {
@if (suggestionsOnly()) {
<app-hierarchy-suggestions
[suggestions]="suggestions()"
(reload)="reloadSuggestions()" />
} @else {
<mat-accordion multi>
<mat-expansion-panel
[expanded]="hierarchyExpanded()"
(expandedChange)="onHierarchyExpandedChange($event)"
class="mat-elevation-z1">
<mat-expansion-panel-header>
<mat-panel-title>Hierarchie</mat-panel-title>
</mat-expansion-panel-header>
<app-hierarchy-chart
[hierarchyData]="hierarchyData()"
[expanded]="hierarchyExpanded()"
[pendingSuggestion]="
suggestions().find(
(suggestion) => suggestion.status === 'new'
) ?? null
"
(analyzeOrgEvent)="analyzeOrg($event)"
(suggestionSaved)="reloadSuggestions()" />
</mat-expansion-panel>
@if (orgUrl()) {
<mat-expansion-panel
[expanded]="organizationExpanded()"
(expandedChange)="onOrganizationExpandedChange($event)"
class="mat-elevation-z1">
<mat-expansion-panel-header>
<mat-panel-title>{{ orgName() }}</mat-panel-title>
</mat-expansion-panel-header>
<app-orgminer-content
[orgName]="orgName()"
[orgUrl]="orgUrl()"></app-orgminer-content>
</mat-expansion-panel>
<mat-expansion-panel
[expanded]="classifiedPagesExpanded()"
(expandedChange)="onClassifiedPagesExpandedChange($event)"
class="mat-elevation-z1">
<mat-expansion-panel-header>
<mat-panel-title>Klassifizierte Seiten</mat-panel-title>
</mat-expansion-panel-header>
<app-classified-pages [orgUrl]="orgUrl()"></app-classified-pages>
</mat-expansion-panel>
} @else if (orgName()) {
<div class="ucs-info">
<mat-icon>info</mat-icon>
<span
>Die Organisation {{ orgName() }} konnte nicht geladen
werden.</span
>
</div>
}
</mat-accordion>
}
}
</div>
</app-page-container>