Commit b68d826a authored by Florent Poittevin's avatar Florent Poittevin
Browse files

refacto: rename detail file to detail-edit file

parent e910d072
......@@ -27,12 +27,12 @@ import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-funding-agency-detail-routable",
templateUrl: "./admin-funding-agencies-detail.routable.html",
selector: "dlcm-admin-funding-agency-detail-edit-routable",
templateUrl: "./admin-funding-agencies-detail-edit.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail-edit-common/shared-abstract-detail-edit-common.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesDetailRoutable extends SharedAbstractDetailEditCommonRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
export class AdminFundingAgenciesDetailEditRoutable extends SharedAbstractDetailEditCommonRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
@Select(AdminFundingAgenciesState.isLoadingWithDependency) isLoadingWithDependencyObs: Observable<boolean>;
@Select(AdminFundingAgenciesState.isReadyToBeDisplayed) isReadyToBeDisplayedObs: Observable<boolean>;
@Select((state: LocalStateModel) => state.shared.shared_organizationalUnit.list) listOrgUnitsObs: Observable<OrganizationalUnitExtended[]>;
......
import {AdminFundingAgenciesCreateRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-create/admin-funding-agencies-create.routable";
import {AdminFundingAgenciesDetailRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-detail/admin-funding-agencies-detail.routable";
import {AdminFundingAgenciesDetailEditRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-detail-edit/admin-funding-agencies-detail-edit.routable";
import {AdminFundingAgenciesListRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-list/admin-funding-agencies-list.routable";
import {NgModule} from "@angular/core";
import {
......@@ -22,7 +22,7 @@ const routes: Routes = [
},
{
path: AdminRoutesEnum.fundingAgenciesDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminFundingAgenciesDetailRoutable,
component: AdminFundingAgenciesDetailEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.funding-agencies.detail"),
breadcrumbMemoizedSelector: AdminFundingAgenciesState.currentTitle,
......
import {AdminFundingAgencyDeleteDialog} from "@admin/funding-agencies/components/dialogs/admin-funding-agency-delete/admin-funding-agency-delete.dialog";
import {AdminFundingAgenciesFormPresentational} from "@admin/funding-agencies/components/presentationals/admin-funding-agencies-form/admin-funding-agencies-form.presentational";
import {AdminFundingAgenciesCreateRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-create/admin-funding-agencies-create.routable";
import {AdminFundingAgenciesDetailRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-detail/admin-funding-agencies-detail.routable";
import {AdminFundingAgenciesDetailEditRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-detail-edit/admin-funding-agencies-detail-edit.routable";
import {AdminFundingAgenciesListRoutable} from "@admin/funding-agencies/components/routables/admin-funding-agencies-list/admin-funding-agencies-list.routable";
import {AdminFundingAgenciesRoutingModule} from "@admin/funding-agencies/funding-agencies-routing.module";
import {AdminFundingAgenciesState} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
......@@ -12,7 +12,7 @@ import {NgxsModule} from "@ngxs/store";
const routables = [
AdminFundingAgenciesListRoutable,
AdminFundingAgenciesDetailRoutable,
AdminFundingAgenciesDetailEditRoutable,
AdminFundingAgenciesCreateRoutable,
];
const containers = [];
......
......@@ -21,12 +21,12 @@ import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-institution-detail-routable",
templateUrl: "./admin-institution-detail.routable.html",
selector: "dlcm-admin-institution-detail-edit-routable",
templateUrl: "./admin-institution-detail-edit.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail-edit-common/shared-abstract-detail-edit-common.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminInstitutionDetailRoutable extends SharedAbstractDetailEditCommonRoutable<Institution, AdminInstitutionStateModel> {
export class AdminInstitutionDetailEditRoutable extends SharedAbstractDetailEditCommonRoutable<Institution, AdminInstitutionStateModel> {
@Select(AdminInstitutionState.isLoadingWithDependency) isLoadingWithDependencyObs: Observable<boolean>;
@Select(AdminInstitutionState.isReadyToBeDisplayed) isReadyToBeDisplayedObs: Observable<boolean>;
......
import {AdminInstitutionCreateRoutable} from "@admin/institution/components/routables/admin-institution-create/admin-institution-create.routable";
import {AdminInstitutionDetailRoutable} from "@admin/institution/components/routables/admin-institution-detail/admin-institution-detail.routable";
import {AdminInstitutionDetailEditRoutable} from "@admin/institution/components/routables/admin-institution-detail-edit/admin-institution-detail-edit.routable";
import {AdminInstitutionListRoutable} from "@admin/institution/components/routables/admin-institution-list/admin-institution-list.routable";
import {AdminInstitutionState} from "@admin/institution/stores/admin-institution.state";
import {NgModule} from "@angular/core";
......@@ -22,7 +22,7 @@ const routes: Routes = [
},
{
path: AdminRoutesEnum.institutionDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminInstitutionDetailRoutable,
component: AdminInstitutionDetailEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.institution.detail"),
breadcrumbMemoizedSelector: AdminInstitutionState.currentTitle,
......
import {AdminInstitutionDeleteDialog} from "@admin/institution/components/dialogs/admin-institution-delete/admin-institution-delete.dialog";
import {AdminInstitutionFormPresentational} from "@admin/institution/components/presentationals/admin-institution-form/admin-institution-form.presentational";
import {AdminInstitutionCreateRoutable} from "@admin/institution/components/routables/admin-institution-create/admin-institution-create.routable";
import {AdminInstitutionDetailRoutable} from "@admin/institution/components/routables/admin-institution-detail/admin-institution-detail.routable";
import {AdminInstitutionDetailEditRoutable} from "@admin/institution/components/routables/admin-institution-detail-edit/admin-institution-detail-edit.routable";
import {AdminInstitutionListRoutable} from "@admin/institution/components/routables/admin-institution-list/admin-institution-list.routable";
import {AdminInstitutionRoutingModule} from "@admin/institution/institution-routing.module";
import {AdminInstitutionState} from "@admin/institution/stores/admin-institution.state";
......@@ -12,7 +12,7 @@ import {NgxsModule} from "@ngxs/store";
const routables = [
AdminInstitutionListRoutable,
AdminInstitutionDetailRoutable,
AdminInstitutionDetailEditRoutable,
AdminInstitutionCreateRoutable,
];
const containers = [];
......
......@@ -21,12 +21,12 @@ import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-license-detail-routable",
templateUrl: "./admin-license-detail.routable.html",
selector: "dlcm-admin-license-detail-edit-routable",
templateUrl: "./admin-license-detail-edit.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail-edit-common/shared-abstract-detail-edit-common.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminLicenseDetailRoutable extends SharedAbstractDetailEditCommonRoutable<License, AdminLicenseStateModel> {
export class AdminLicenseDetailEditRoutable extends SharedAbstractDetailEditCommonRoutable<License, AdminLicenseStateModel> {
@Select(AdminLicenseState.isLoadingWithDependency) isLoadingWithDependencyObs: Observable<boolean>;
@Select(AdminLicenseState.isReadyToBeDisplayed) isReadyToBeDisplayedObs: Observable<boolean>;
......
import {AdminLicenseCreateRoutable} from "@admin/license/components/routables/admin-license-create/admin-license-create.routable";
import {AdminLicenseDetailRoutable} from "@admin/license/components/routables/admin-license-detail/admin-license-detail.routable";
import {AdminLicenseDetailEditRoutable} from "@admin/license/components/routables/admin-license-detail-edit/admin-license-detail-edit.routable";
import {AdminLicenseListRoutable} from "@admin/license/components/routables/admin-license-list/admin-license-list.routable";
import {AdminLicenseState} from "@admin/license/stores/admin-license.state";
import {NgModule} from "@angular/core";
......@@ -30,7 +30,7 @@ const routes: Routes = [
},
{
path: AdminRoutesEnum.licenseDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminLicenseDetailRoutable,
component: AdminLicenseDetailEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.license.detail"),
breadcrumbMemoizedSelector: AdminLicenseState.currentTitle,
......
import {AdminLicenseDeleteDialog} from "@admin/license/components/dialogs/admin-license-delete/admin-license-delete.dialog";
import {AdminLicenseFormPresentational} from "@admin/license/components/presentationals/admin-license-form/admin-license-form.presentational";
import {AdminLicenseDetailEditRoutable} from "@admin/license/components/routables/admin-license-detail-edit/admin-license-detail-edit.routable";
import {AdminLicenseRoutingModule} from "@admin/license/license-routing.module";
import {AdminLicenseState} from "@admin/license/stores/admin-license.state";
import {NgModule} from "@angular/core";
import {AdminLicenseCreateRoutable} from "@app/features/admin/license/components/routables/admin-license-create/admin-license-create.routable";
import {AdminLicenseDetailRoutable} from "@app/features/admin/license/components/routables/admin-license-detail/admin-license-detail.routable";
import {AdminLicenseListRoutable} from "@app/features/admin/license/components/routables/admin-license-list/admin-license-list.routable";
import {SharedModule} from "@app/shared/shared.module";
import {TranslateModule} from "@ngx-translate/core";
......@@ -12,7 +12,7 @@ import {NgxsModule} from "@ngxs/store";
const routables = [
AdminLicenseCreateRoutable,
AdminLicenseDetailRoutable,
AdminLicenseDetailEditRoutable,
AdminLicenseListRoutable,
];
const containers = [];
......
......@@ -21,12 +21,12 @@ import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-oauth2-client-detail-routable",
templateUrl: "./admin-oauth2-client-detail.routable.html",
selector: "dlcm-admin-oauth2-client-detail-edit-routable",
templateUrl: "./admin-oauth2-client-detail-edit.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail-edit-common/shared-abstract-detail-edit-common.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminOAuth2ClientDetailRoutable extends SharedAbstractDetailEditCommonRoutable<Oauth2Client, AdminOAuth2ClientStateModel> {
export class AdminOauth2ClientDetailEditRoutable extends SharedAbstractDetailEditCommonRoutable<Oauth2Client, AdminOAuth2ClientStateModel> {
@Select(AdminOAuth2ClientState.isLoadingWithDependency) isLoadingWithDependencyObs: Observable<boolean>;
@Select(AdminOAuth2ClientState.isReadyToBeDisplayed) isReadyToBeDisplayedObs: Observable<boolean>;
......
import {AdminOauth2ClientCreateRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-create/admin-oauth2-client-create.routable";
import {AdminOAuth2ClientDetailRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-detail/admin-oauth2-client-detail.routable";
import {AdminOauth2ClientDetailEditRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-detail-edit/admin-oauth2-client-detail-edit.routable";
import {AdminOAuth2ClientListRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-list/admin-oauth2-client-list.routable";
import {AdminOAuth2ClientState} from "@admin/oauth2-client/stores/admin-oauth2-client.state";
import {NgModule} from "@angular/core";
......@@ -22,7 +22,7 @@ const routes: Routes = [
},
{
path: AdminRoutesEnum.oauth2clientDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminOAuth2ClientDetailRoutable,
component: AdminOauth2ClientDetailEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.oauth2Client.detail"),
breadcrumbMemoizedSelector: AdminOAuth2ClientState.currentTitle,
......
import {AdminOauth2ClientDeleteDialog} from "@admin/oauth2-client/components/dialogs/admin-oauth2-client-delete/admin-oauth2-client-delete.dialog";
import {AdminOAtuh2ClientFormPresentational} from "@admin/oauth2-client/components/presentationals/admin-oauth2-client-form/admin-oauth2-client-form.presentational";
import {AdminOauth2ClientCreateRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-create/admin-oauth2-client-create.routable";
import {AdminOAuth2ClientDetailRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-detail/admin-oauth2-client-detail.routable";
import {AdminOauth2ClientDetailEditRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-detail-edit/admin-oauth2-client-detail-edit.routable";
import {AdminOAuth2ClientListRoutable} from "@admin/oauth2-client/components/routables/admin-oauth2-client-list/admin-oauth2-client-list.routable";
import {AdminOauth2ClientRoutingModule} from "@admin/oauth2-client/oauth2-client-routing.module";
import {AdminOAuth2ClientState} from "@admin/oauth2-client/stores/admin-oauth2-client.state";
......@@ -12,7 +12,7 @@ import {NgxsModule} from "@ngxs/store";
const routables = [
AdminOAuth2ClientListRoutable,
AdminOAuth2ClientDetailRoutable,
AdminOauth2ClientDetailEditRoutable,
AdminOauth2ClientCreateRoutable,
];
const containers = [];
......
......@@ -43,8 +43,6 @@ export class AdminOrgunitCreateRoutable extends SharedAbstractCreateRoutable<Org
@Select((state: LocalStateModel) => state.admin.admin_organizationalUnit.admin_organizationalUnit_fundingAgency.selected) selectedFundingAgenciesObs: Observable<FundingAgency[]>;
@Select((state: LocalStateModel) => state.admin.admin_organizationalUnit.admin_organizationalUnit_institution.selected) selectedInstitutionsObs: Observable<Institution[]>;
constructor(protected store: Store) {
super(store, LocalStateEnum.admin_organizationalUnit, adminOrgUnitActionNameSpace, LocalStateEnum.admin);
}
......
......@@ -36,12 +36,12 @@ import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-orgunit-detail-routable",
templateUrl: "./admin-orgunit-detail.routable.html",
selector: "dlcm-admin-orgunit-detail-edit-routable",
templateUrl: "./admin-orgunit-detail-edit.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail-edit-common/shared-abstract-detail-edit-common.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminOrgunitDetailRoutable extends SharedAbstractDetailEditCommonRoutable<OrganizationalUnitExtended, AdminOrganizationalUnitStateModel> {
export class AdminOrgunitDetailEditRoutable extends SharedAbstractDetailEditCommonRoutable<OrganizationalUnitExtended, AdminOrganizationalUnitStateModel> {
@Select(AdminOrganizationalUnitState.isLoadingWithDependency) isLoadingWithDependencyObs: Observable<boolean>;
@Select(AdminOrganizationalUnitState.isReadyToBeDisplayed) isReadyToBeDisplayedObs: Observable<boolean>;
@Select((state: LocalStateModel) => state.admin.admin_organizationalUnit.admin_organizationalUnit_submissionPolicy.selected) selectedSubmissionPoliciesObs: Observable<SubmissionPolicy[]>;
......
import {AdminOrgunitCreateRoutable} from "@admin/orgunit/components/routables/admin-orgunit-create/admin-orgunit-create.routable";
import {AdminOrgunitDetailRoutable} from "@admin/orgunit/components/routables/admin-orgunit-detail/admin-orgunit-detail.routable";
import {AdminOrgunitDetailEditRoutable} from "@admin/orgunit/components/routables/admin-orgunit-detail-edit/admin-orgunit-detail-edit.routable";
import {AdminOrgunitListRoutable} from "@admin/orgunit/components/routables/admin-orgunit-list/admin-orgunit-list.routable";
import {AdminOrganizationalUnitState} from "@admin/orgunit/stores/admin-organizational-unit.state";
import {NgModule} from "@angular/core";
......@@ -22,7 +22,7 @@ const routes: Routes = [
},
{
path: AdminRoutesEnum.organizationalUnitDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminOrgunitDetailRoutable,
component: AdminOrgunitDetailEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.organizationalUnit.detail"),
breadcrumbMemoizedSelector: AdminOrganizationalUnitState.currentTitle,
......
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