Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/features/collections/collections.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const collectionsRoutes: Routes = [
canDeactivate: [ConfirmLeavingGuard],
},
{
path: ':collectionId/moderation',
path: ':providerId/moderation',
loadChildren: () =>
import('@osf/features/moderation/collection-moderation.routes').then((m) => m.collectionModerationRoutes),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class CollectionModerationSubmissionsComponent {
}

private initializeCollectionProvider(): void {
const id = this.route.parent?.snapshot.paramMap.get('collectionId');
const id = this.route.parent?.snapshot.paramMap.get('providerId');

if (!id) {
this.router.navigate(['/not-found']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ModeratorsListComponent implements OnInit {
private readonly toastService = inject(ToastService);

readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['collectionId'])) ?? of(undefined)
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);
readonly resourceType: Signal<ResourceType | undefined> = toSignal(
this.route.data.pipe(map((params) => params['resourceType'])) ?? of(undefined)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class PreprintModerationSettingsComponent implements OnInit {
private readonly fb = inject(FormBuilder);

private readonly actions = createDispatchMap({ getPreprintProvider: GetPreprintProvider });
readonly providerId = toSignal(this.route.parent?.params.pipe(map((params) => params['id'])) ?? of(undefined));
readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);

settingsForm!: FormGroup;
sections = PREPRINT_SETTINGS_SECTIONS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class PreprintSubmissionsComponent implements OnInit {
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['id'])) ?? of(undefined)
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);

readonly actions = createDispatchMap({ getPreprintSubmissions: GetPreprintSubmissions });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class PreprintWithdrawalSubmissionsComponent implements OnInit {
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['id'])) ?? of(undefined)
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);

readonly actions = createDispatchMap({ getPreprintWithdrawalSubmissions: GetPreprintWithdrawalSubmissions });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RegistryPendingSubmissionsComponent implements OnInit {
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['id'])) ?? of(undefined)
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);

readonly actions = createDispatchMap({ getRegistrySubmissions: GetRegistrySubmissions });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RegistrySubmissionsComponent implements OnInit {
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly providerId = toSignal(
this.route.parent?.params.pipe(map((params) => params['id'])) ?? of(undefined)
this.route.parent?.params.pipe(map((params) => params['providerId'])) ?? of(undefined)
);

readonly actions = createDispatchMap({ getRegistrySubmissions: GetRegistrySubmissions });
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/preprints/preprints.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const preprintsRoutes: Routes = [
),
},
{
path: ':id/moderation',
path: ':providerId/moderation',
loadChildren: () =>
import('@osf/features/moderation/preprint-moderation.routes').then((mod) => mod.preprintModerationRoutes),
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/registries/registries.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const registriesRoutes: Routes = [
loadComponent: () => import('@osf/features/registries/pages').then((c) => c.MyRegistrationsComponent),
},
{
path: ':id/moderation',
path: ':providerId/moderation',
loadChildren: () =>
import('@osf/features/moderation/registry-moderation.routes').then((c) => c.registryModerationRoutes),
},
Expand Down