admin-funding-agencies-create.routable.ts 1.49 KB
Newer Older
1
2
3
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
4
import {FundingAgency} from "@app/generated-api";
5
import {LocalStateEnum} from "@shared/enums/local-state.enum";
6
import {OrganizationalUnitExtended} from "@deposit/models/organizational-unit-extended.model";
7
import {Select, Store,} from "@ngxs/store";
8
import {SharedAbstractCreateRoutable} from "@shared/components/routables/shared-abstract-create/shared-abstract-create.routable";
Florent Poittevin's avatar
Florent Poittevin committed
9
10
import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
11
12
13
14

@Component({
  selector: "dlcm-admin-funding-agency-create-routable",
  templateUrl: "./admin-funding-agencies-create.routable.html",
15
  styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"],
16
17
18
19
20
21
22
23
24
25
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesCreateRoutable extends SharedAbstractCreateRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
  @Select((state: LocalStateModel) => state.shared.shared_organizationalUnit.list) listOrgUnitsObs: Observable<OrganizationalUnitExtended[]>;

  constructor(protected store: Store) {
    super(store, LocalStateEnum.admin_fundingAgencies, adminFundingAgenciesActionNameSpace, LocalStateEnum.admin);
  }

}