Commit c1f67c9a authored by Quentin Torck's avatar Quentin Torck
Browse files

Merge branch 'master' into qto-manage-shortcuts

parents ac913d26 f4b3e8f2
import {HttpClientTestingModule} from "@angular/common/http/testing";
import {NO_ERRORS_SCHEMA} from "@angular/core";
import {async, ComponentFixture, TestBed,} from "@angular/core/testing";
import {
async,
ComponentFixture,
TestBed,
} from "@angular/core/testing";
import {ReactiveFormsModule} from "@angular/forms";
import {SharedSearchPresentational} from "@app/shared/components/presentationals/shared-search/shared-search.presentational";
import {TranslateService} from "@ngx-translate/core";
......
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {SharedAbstractPresentational} from "@app/shared/components/presentationals/shared-abstract/shared-abstract.presentational";
import {ApplicationRoleEnum} from "@app/shared/enums/application-role.enum";
import {RoutesEnum} from "@app/shared/enums/routes.enum";
......@@ -38,7 +41,7 @@ export class PreservationSpaceHomeRoutable extends SharedAbstractPresentational
subtitleToTranslate: TRANSLATE("admin.contributor.home.subtitle"),
path: RoutesEnum.contributor,
isVisible: () => true,
}
},
];
constructor(private store: Store) {
......
import {NgModule} from "@angular/core";
import {RouterModule} from "@angular/router";
import {DlcmRoutes} from "@app/shared/models/dlcm-route.model";
import {AppRoutesEnum, ContributorRoutesEnum,} from "@shared/enums/routes.enum";
import {ContributorListRoutable} from "@app/features/preservation-space/contributor/components/routables/contributor-list/contributor-list.routable";
import {ContributorDetailEditRoutable} from "@app/features/preservation-space/contributor/components/routables/contributor-detail-edit/contributor-detail-edit.routable";
import {ContributorListRoutable} from "@app/features/preservation-space/contributor/components/routables/contributor-list/contributor-list.routable";
import {ContributorState} from "@app/features/preservation-space/contributor/stores/contributor.state";
import {DlcmRoutes} from "@app/shared/models/dlcm-route.model";
import {
AppRoutesEnum,
ContributorRoutesEnum,
} from "@shared/enums/routes.enum";
const routes: DlcmRoutes = [
{
......@@ -18,8 +21,8 @@ const routes: DlcmRoutes = [
component: ContributorDetailEditRoutable,
data: {
breadcrumbMemoizedSelector: ContributorState.currentTitle,
}
}
},
},
];
@NgModule({
......
import {NgModule} from "@angular/core";
import {RouterModule} from "@angular/router";
import {AppRoutesEnum,} from "@app/shared/enums/routes.enum";
import {DlcmRoutes} from "@app/shared/models/dlcm-route.model";
import {PreservationSpaceHomeRoutable} from "@app/features/preservation-space/components/routables/preservation-space-home/preservation-space-home.routable";
import {TRANSLATE} from "solidify-frontend";
import {AppRoutesEnum} from "@app/shared/enums/routes.enum";
import {DlcmRoutes} from "@app/shared/models/dlcm-route.model";
import {ApplicationRoleGuardService} from "@shared/guards/application-role-guard.service";
import {TRANSLATE} from "solidify-frontend";
const routes: DlcmRoutes = [
{
......@@ -20,7 +20,7 @@ const routes: DlcmRoutes = [
breadcrumb: TRANSLATE("breadcrumb.contributor.root"),
},
canActivate: [ApplicationRoleGuardService],
}
},
];
@NgModule({
......
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