Dev 1.8.0 #399
@@ -27,12 +27,7 @@ class FieldCrypto {
|
|||||||
"oidc_identifier",
|
"oidc_identifier",
|
||||||
"oidcIdentifier",
|
"oidcIdentifier",
|
||||||
]),
|
]),
|
||||||
ssh_data: new Set([
|
ssh_data: new Set(["password", "key", "key_password", "keyPassword"]),
|
||||||
"password",
|
|
||||||
"key",
|
|
||||||
"key_password",
|
|
||||||
"keyPassword",
|
|
||||||
]),
|
|
||||||
ssh_credentials: new Set([
|
ssh_credentials: new Set([
|
||||||
"password",
|
"password",
|
||||||
"private_key",
|
"private_key",
|
||||||
|
|||||||
@@ -614,39 +614,6 @@ function FileManagerContent({ initialHost, onClose }: FileManagerProps) {
|
|||||||
|
|
||||||
const fullMessage = `${confirmMessage}\n\n${t("fileManager.permanentDeleteWarning")}`;
|
const fullMessage = `${confirmMessage}\n\n${t("fileManager.permanentDeleteWarning")}`;
|
||||||
|
|
||||||
confirmWithToast(
|
|
||||||
fullMessage,
|
|
||||||
async () => {
|
|
||||||
try {
|
|
||||||
await ensureSSHConnection();
|
|
||||||
// Determine the confirmation message based on file count and type
|
|
||||||
let confirmMessage: string;
|
|
||||||
if (files.length === 1) {
|
|
||||||
const file = files[0];
|
|
||||||
if (file.type === "directory") {
|
|
||||||
confirmMessage = t("fileManager.confirmDeleteFolder", {
|
|
||||||
name: file.name,
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
confirmMessage = t("fileManager.confirmDeleteSingleItem", {
|
|
||||||
name: file.name,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const hasDirectory = files.some((file) => file.type === "directory");
|
|
||||||
const translationKey = hasDirectory
|
|
||||||
? "fileManager.confirmDeleteMultipleItemsWithFolders"
|
|
||||||
: "fileManager.confirmDeleteMultipleItems";
|
|
||||||
|
|
||||||
confirmMessage = t(translationKey, {
|
|
||||||
count: files.length,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add permanent deletion warning
|
|
||||||
const fullMessage = `${confirmMessage}\n\n${t("fileManager.permanentDeleteWarning")}`;
|
|
||||||
|
|
||||||
// Show confirmation dialog
|
|
||||||
confirmWithToast(
|
confirmWithToast(
|
||||||
fullMessage,
|
fullMessage,
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user