events: add copy action

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-11-10 14:59:46 +01:00
parent fc4527354b
commit 3b68d0343a
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
3 changed files with 5 additions and 0 deletions

View file

@ -897,6 +897,7 @@
"rmdir": "Remove dir", "rmdir": "Remove dir",
"rename": "Rename", "rename": "Rename",
"delete": "Removal", "delete": "Removal",
"copy": "Copy",
"first_upload": "First upload", "first_upload": "First upload",
"first_download": "First download", "first_download": "First download",
"ssh_cmd": "SSH command", "ssh_cmd": "SSH command",

View file

@ -897,6 +897,7 @@
"rmdir": "Rimozione cartella", "rmdir": "Rimozione cartella",
"rename": "Rinomina", "rename": "Rinomina",
"delete": "Rimozione", "delete": "Rimozione",
"copy": "Copia",
"first_upload": "Primo caricamento", "first_upload": "Primo caricamento",
"first_download": "Primo download", "first_download": "Primo download",
"ssh_cmd": "Comando SSH", "ssh_cmd": "Comando SSH",

View file

@ -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.mkdir'),"mkdir",false,false));
idActions.append(new Option($.t('events.rmdir'),"rmdir",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.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.delete'),"delete",false,false));
idActions.append(new Option($.t('events.first_upload'),"first-upload",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)); 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'); return $.t('events.first_download');
case "ssh_cmd": case "ssh_cmd":
return $.t('events.ssh_cmd'); return $.t('events.ssh_cmd');
case "copy":
return $.t('events.copy');
default: default:
console.log(`unknown fs action "${data}"`); console.log(`unknown fs action "${data}"`);
return ""; return "";