Commit 7197adba authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix bug when uploading ssh key files

parent fea5dc32
...@@ -57,11 +57,11 @@ export class SshkeysComponent implements OnInit { ...@@ -57,11 +57,11 @@ export class SshkeysComponent implements OnInit {
return key.name !== "unity_key"; return key.name !== "unity_key";
} }
addFiles() { addFiles(): void {
this.file.nativeElement.click(); this.file.nativeElement.click();
} }
onFilesAdded() { onFilesAdded(): void {
const files: { [key: string]: File } = this.file.nativeElement.files; const files: { [key: string]: File } = this.file.nativeElement.files;
for (let key in files) { for (let key in files) {
...@@ -80,6 +80,7 @@ export class SshkeysComponent implements OnInit { ...@@ -80,6 +80,7 @@ export class SshkeysComponent implements OnInit {
} }
); );
// reset the files
this.files = new Set();
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment