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

Fix bug when uploading ssh key files

parent fea5dc32
......@@ -57,11 +57,11 @@ export class SshkeysComponent implements OnInit {
return key.name !== "unity_key";
}
addFiles() {
addFiles(): void {
this.file.nativeElement.click();
}
onFilesAdded() {
onFilesAdded(): void {
const files: { [key: string]: File } = this.file.nativeElement.files;
for (let key in files) {
......@@ -80,6 +80,7 @@ export class SshkeysComponent implements OnInit {
}
);
// reset the files
this.files = new Set();
}
}
Markdown is supported
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