mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
Add Remove Password UI into V2 (#4214)
# Description of Changes - Add UI for Remove Password tool - Fix more translation warnings that were being thrown in the console - Add an encrypted PDF thumbnail and refactor thumbnail generation code
This commit is contained in:
@@ -6,7 +6,7 @@ export const useAddPasswordPermissionsTips = (): TooltipContent => {
|
||||
|
||||
return {
|
||||
header: {
|
||||
title: t("addPassword.tooltip.permissions.title", "Document Permissions")
|
||||
title: t("addPassword.tooltip.permissions.title", "Change Permissions")
|
||||
},
|
||||
tips: [
|
||||
{
|
||||
|
||||
20
frontend/src/components/tooltips/useRemovePasswordTips.ts
Normal file
20
frontend/src/components/tooltips/useRemovePasswordTips.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { TooltipContent } from '../../types/tips';
|
||||
|
||||
export const useRemovePasswordTips = (): TooltipContent => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return {
|
||||
header: {
|
||||
title: t("removePassword.title", "Remove Password")
|
||||
},
|
||||
tips: [
|
||||
{
|
||||
description: t(
|
||||
"removePassword.tooltip.description",
|
||||
"Removing password protection requires the current password that was used to encrypt the PDF. This will decrypt the document, making it accessible without a password."
|
||||
)
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user