From 7bffed712a236411bcc042c136bc369b701c902a Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 10 Nov 2024 14:59:46 +0100 Subject: [PATCH] events: add copy action Signed-off-by: Nicola Murino --- static/locales/en/translation.json | 1 + static/locales/it/translation.json | 1 + templates/webadmin/events.html | 3 +++ 3 files changed, 5 insertions(+) diff --git a/static/locales/en/translation.json b/static/locales/en/translation.json index e0b6e2b1..78523777 100644 --- a/static/locales/en/translation.json +++ b/static/locales/en/translation.json @@ -932,6 +932,7 @@ "rmdir": "Remove dir", "rename": "Rename", "delete": "Removal", + "copy": "Copy", "first_upload": "First upload", "first_download": "First download", "ssh_cmd": "SSH command", diff --git a/static/locales/it/translation.json b/static/locales/it/translation.json index 8a62f253..aae9b0e2 100644 --- a/static/locales/it/translation.json +++ b/static/locales/it/translation.json @@ -932,6 +932,7 @@ "rmdir": "Rimozione cartella", "rename": "Rinomina", "delete": "Rimozione", + "copy": "Copia", "first_upload": "Primo caricamento", "first_download": "Primo download", "ssh_cmd": "Comando SSH", diff --git a/templates/webadmin/events.html b/templates/webadmin/events.html index ffd5bf8e..a736dfc7 100644 --- a/templates/webadmin/events.html +++ b/templates/webadmin/events.html @@ -369,6 +369,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). idActions.append(new Option($.t('events.mkdir'),"mkdir",false,false)); idActions.append(new Option($.t('events.rmdir'),"rmdir",false,false)); idActions.append(new Option($.t('events.rename'),"rename",false,false)); + idActions.append(new Option($.t('events.copy'),"copy",false,false)); idActions.append(new Option($.t('events.delete'),"delete",false,false)); idActions.append(new Option($.t('events.first_upload'),"first-upload",false,false)); idActions.append(new Option($.t('events.first_download'),"first-download",false,false)); @@ -507,6 +508,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). return $.t('events.first_download'); case "ssh_cmd": return $.t('events.ssh_cmd'); + case "copy": + return $.t('events.copy'); default: console.log(`unknown fs action "${data}"`); return "";