Răsfoiți Sursa

events: add copy action

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 11 luni în urmă
părinte
comite
3b68d0343a

+ 1 - 0
static/locales/en/translation.json

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

+ 1 - 0
static/locales/it/translation.json

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

+ 3 - 0
templates/webadmin/events.html

@@ -369,6 +369,7 @@ explicit grant from the SFTPGo Team ([email protected]).
         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 ([email protected]).
                                         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 "";