1
0
mirror of https://github.com/bitwarden/web synced 2025-12-17 16:53:14 +00:00

improt instructions

This commit is contained in:
Kyle Spearrin
2018-06-25 15:47:05 -04:00
parent e59277742d
commit 9b67f6e398
3 changed files with 45 additions and 0 deletions

View File

@@ -165,6 +165,18 @@ export class ImportComponent {
}
}
getFormatName() {
if (this.format == null) {
return null;
}
const results = this.featuredImportOptions.concat(this.importOptions).filter((o) => o.id === this.format);
if (results.length > 0) {
return results[0].name;
}
return null;
}
private getFileContents(file: File): Promise<string> {
return new Promise((resolve, reject) => {
const reader = new FileReader();