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

Remove console.log, add function parameter documentation and improve if-clause

parent 8716ae0c
No related branches found
No related tags found
No related merge requests found
Pipeline #52225 passed
...@@ -235,7 +235,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) { ...@@ -235,7 +235,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
} else if (this.allowedMimeTypes && !this.checkFileType(file) ) { } else if (this.allowedMimeTypes && !this.checkFileType(file) ) {
return; return;
} }
console.log("huiiii");
await this.sendFileEvent(file, fileCount); await this.sendFileEvent(file, fileCount);
}); });
...@@ -247,7 +247,8 @@ console.log("huiiii"); ...@@ -247,7 +247,8 @@ console.log("huiiii");
} }
/** /**
* @param file, last * @param file
* @param maxUpload
*/ */
sendFileEvent(file, maxUpload) { sendFileEvent(file, maxUpload) {
this.sendSource(); this.sendSource();
...@@ -259,7 +260,7 @@ console.log("huiiii"); ...@@ -259,7 +260,7 @@ console.log("huiiii");
sendSource() { sendSource() {
let data = {}; let data = {};
if (this.activeTarget == 'nextcloud') { if (this.activeTarget === 'nextcloud') {
data = {"target": this.activeTarget, "path": this._("#nextcloud-file-picker").directoryPath}; data = {"target": this.activeTarget, "path": this._("#nextcloud-file-picker").directoryPath};
} else { } else {
data = {"target": this.activeTarget}; data = {"target": this.activeTarget};
......
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