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
No related branches found
No related tags found
No related merge requests found
Pipeline #30658 passed
......@@ -263,8 +263,14 @@ export class FileHandlingClipboard extends ScopedElementsMixin(DBPLitElement) {
}
async sendClipboardFiles(files) {
for (let i = 0; i < files.length; i ++) {
await this.sendFileEvent(files[i].file);
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();
......@@ -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.
Finish editing this message first!
Please register or to comment