mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-13 02:18:16 +01:00
Improve titles, headers and tooltips in Add Password and Change Permissions (#4210)
# Description of Changes Improve titles, headers and tooltips in Add Password and Change Permissions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { TooltipContent } from '../../types/tips';
|
||||
|
||||
export const useAddPasswordPermissionsTips = (): TooltipContent => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return {
|
||||
header: {
|
||||
title: t("addPassword.tooltip.permissions.title", "Document Permissions")
|
||||
},
|
||||
tips: [
|
||||
{
|
||||
description: t("addPassword.tooltip.permissions.text", "These permissions control what users can do with the PDF. Most effective when combined with an owner password."),
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
@@ -26,10 +26,6 @@ export const useAddPasswordTips = (): TooltipContent => {
|
||||
t("addPassword.tooltip.encryption.bullet3", "256-bit: Maximum security, requires modern viewers")
|
||||
]
|
||||
},
|
||||
{
|
||||
title: t("addPassword.tooltip.restrictions.title", "Document Restrictions"),
|
||||
description: t("addPassword.tooltip.restrictions.text", "These restrictions control what users can do with the PDF. Most effective when combined with an owner password."),
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
@@ -10,8 +10,11 @@ export const useChangePermissionsTips = (): TooltipContent => {
|
||||
},
|
||||
tips: [
|
||||
{
|
||||
title: t("changePermissions.tooltip.description.title", "Description"),
|
||||
description: t("changePermissions.tooltip.description.text", "Changes document permissions. Warning: To make these restrictions unchangeable, use the Add Password tool to set an owner password.")
|
||||
description: t("changePermissions.tooltip.description.text", "Changes document permissions, allowing/disallowing access to different features in PDF readers.")
|
||||
},
|
||||
{
|
||||
title: t("warning.tooltipTitle", "Warning"),
|
||||
description: t("changePermissions.tooltip.warning.text", "To make these permissions unchangeable, use the Add Password tool to set an owner password.")
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user