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
21 changes: 21 additions & 0 deletions assets/js/components/deposit/overrides/LockRequest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file is part of CDS RDM
// Copyright (C) 2025 CERN.
//
// CDS RDM is free software; you can redistribute it and/or modify it
// under the terms of the GPL-2.0 License; see LICENSE file for more details.

import React from "react";

Check warning on line 7 in assets/js/components/deposit/overrides/LockRequest.js

View workflow job for this annotation

GitHub Actions / JS

'React' is defined but never used
import { i18next } from "@translations/invenio_rdm_records/i18next";
import { LockRequest } from "@js/invenio_requests/request/LockRequest";
import { parametrize } from "react-overridable";

export const parameters = {
lockHelpText: i18next.t(
"Locking the conversation will prevent users with access from adding/updating comments, but will still allow them to reply."
),
unlockHelpText: i18next.t(
"Unlocking the conversation will allow users with access to add/update or reply to comments."
),
};

export const LockRequestComponent = parametrize(LockRequest, parameters);
2 changes: 2 additions & 0 deletions assets/js/invenio_app_rdm/overridableRegistry/mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
PublishModalComponent,
SubmitReviewModalComponent,
} from "../../components/deposit/overrides/PublishModal";
import { LockRequestComponent } from "../../components/requests/overrides/LockRequest";

export const overriddenComponents = {
"InvenioAppRdm.RecordsList.layout": CDSRecordsList,
Expand All @@ -31,4 +32,5 @@ export const overriddenComponents = {
"InvenioAppRdm.RecordLandingPage.RecordManagement.container": CLCSync,
"InvenioRdmRecords.SubmitReviewModal.container": SubmitReviewModalComponent,
"InvenioRdmRecords.PublishModal.container": PublishModalComponent,
"InvenioRequests.LockRequest": LockRequestComponent,
};