Improve ID for addAttachments

This commit is contained in:
James Brunton 2025-09-19 13:13:45 +01:00
parent 075ad462b2
commit 444b47169e
3 changed files with 5 additions and 5 deletions

View File

@ -382,7 +382,7 @@
"title": "Add image", "title": "Add image",
"desc": "Adds a image onto a set location on the PDF" "desc": "Adds a image onto a set location on the PDF"
}, },
"attachments": { "addAttachments": {
"title": "Add Attachments", "title": "Add Attachments",
"desc": "Add or remove embedded files (attachments) to/from a PDF" "desc": "Add or remove embedded files (attachments) to/from a PDF"
}, },

View File

@ -396,12 +396,12 @@ export function useFlatToolRegistry(): ToolRegistry {
endpoints: ["pdf-to-single-page"], endpoints: ["pdf-to-single-page"],
operationConfig: singleLargePageOperationConfig, operationConfig: singleLargePageOperationConfig,
}, },
attachments: { addAttachments: {
icon: <LocalIcon icon="attachment-rounded" width="1.5rem" height="1.5rem" />, icon: <LocalIcon icon="attachment-rounded" width="1.5rem" height="1.5rem" />,
name: t("home.attachments.title", "Add Attachments"), name: t("home.addAttachments.title", "Add Attachments"),
component: null, component: null,
description: t("home.attachments.desc", "Add or remove embedded files (attachments) to/from a PDF"), description: t("home.addAttachments.desc", "Add or remove embedded files (attachments) to/from a PDF"),
categoryId: ToolCategoryId.STANDARD_TOOLS, categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING, subcategoryId: SubcategoryId.PAGE_FORMATTING,
}, },

View File

@ -41,7 +41,7 @@ const TOOL_IDS = [
'reorganizePages', 'reorganizePages',
'extractImages', 'extractImages',
'addStamp', 'addStamp',
'attachments', 'addAttachments',
'changeMetadata', 'changeMetadata',
'overlayPdfs', 'overlayPdfs',
'manageCertificates', 'manageCertificates',