Commit a8c0d6c6 authored by Alicia.DeDiosFuente's avatar Alicia.DeDiosFuente Committed by Florent Poittevin
Browse files

fix: remove unused imports and added navigate method for org units links

parent b528ed81
......@@ -19,6 +19,7 @@ import {
Institution,
OrganizationalUnit,
} from "@models";
import {Navigate} from "@ngxs/router-plugin";
import {
Actions,
Select,
......@@ -63,4 +64,8 @@ export class AdminInstitutionDetailEditRoutable extends AbstractDetailEditCommon
getSubResourceWithParentId(id: string): void {
this._store.dispatch(new AdminInstitutionOrganizationalUnitAction.GetAll(id));
}
navigate($event: string[]): void {
this._store.dispatch(new Navigate($event));
}
}
......@@ -7,13 +7,10 @@ import {
AdminInstitutionOrganizationalUnitState,
AdminInstitutionOrganizationalUnitStateModel,
} from "@admin/institution/stores/organizational-unit/admin-institution-organizational-unit.state";
import {AdminOrganizationalUnitAction} from "@admin/organizational-unit/stores/admin-organizational-unit.action";
import {AdminOrganizationalUnitStateModel} from "@admin/organizational-unit/stores/admin-organizational-unit.state";
import {HttpClient} from "@angular/common/http";
import {Injectable} from "@angular/core";
import {
Institution,
OrganizationalUnit,
} from "@models";
import {
Action,
......@@ -40,14 +37,12 @@ import {tap} from "rxjs/operators";
import {
ApiService,
defaultAssociationStateInitValue,
isArray,
isNotNullNorUndefined,
isNullOrUndefined,
MARK_AS_TRANSLATABLE,
NotificationService,
ofSolidifyActionCompleted,
OverrideDefaultAction,
Relation3TiersForm,
StoreUtil,
} from "solidify-frontend";
......@@ -64,9 +59,9 @@ export interface AdminInstitutionStateModel extends ResourceLogoStateModel<Insti
admin_institution_organizationalUnit: {...defaultAssociationStateInitValue()},
},
children: [
AdminInstitutionOrganizationalUnitState
]
})
AdminInstitutionOrganizationalUnitState,
]},
)
export class AdminInstitutionState extends ResourceLogoState<AdminInstitutionStateModel, Institution> {
constructor(protected apiService: ApiService,
protected store: Store,
......
......@@ -30,7 +30,6 @@ import {Store} from "@ngxs/store";
import {SharedAbstractContainer} from "@shared/components/containers/shared-abstract/shared-abstract.container";
import {RoutesEnum} from "@shared/enums/routes.enum";
import {BaseFormDefinition} from "@shared/models/base-form-definition.model";
import {JobExecutionReport} from "@shared/models/business/job-execution-report.model";
import {sharedOrganizationalUnitActionNameSpace} from "@shared/stores/organizational-unit/shared-organizational-unit.action";
import {SharedOrganizationalUnitState} from "@shared/stores/organizational-unit/shared-organizational-unit.state";
import {sharedPersonActionNameSpace} from "@shared/stores/person/shared-person.action";
......@@ -77,7 +76,7 @@ export class SharedTablePersonOrgunitRoleContainer extends SharedAbstractContain
checkboxDisplayMode: "checkbox" | "radio" = "radio";
columns: DataTableColumns<BaseResource & JobExecutionReport>[] = [
columns: DataTableColumns<BaseResource>[] = [
{
field: "person-or-orgunit",
header: MARK_AS_TRANSLATABLE("person_or_org_unit"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment