Skip to content
Snippets Groups Projects
Unverified Commit f13d7e9c authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add clipboard event tracking

parent 40a3d22d
Branches
No related tags found
No related merge requests found
Pipeline #30658 passed
......@@ -263,10 +263,16 @@ export class FileHandlingClipboard extends ScopedElementsMixin(DBPLitElement) {
}
async sendClipboardFiles(files) {
if (files.length > 0) {
for (let i = 0; i < files.length; i ++) {
await this.sendFileEvent(files[i].file);
}
this.sendSetPropertyEvent(
'analytics-event',
{category: 'FileHandlingClipboard', action: 'LoadFilesFromClipboard', name: files.length});
}
this.tabulatorTable.deselectRow();
//this.closeDialog();
}
......@@ -330,6 +336,10 @@ export class FileHandlingClipboard extends ScopedElementsMixin(DBPLitElement) {
"type": "success",
"timeout": 5,
});
this.sendSetPropertyEvent(
'analytics-event',
{category: 'FileHandlingClipboard', action: 'SaveFilesToClipboard', name: this.filesToSave.length});
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment