1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

running lint, removing commented code

This commit is contained in:
CarleyDiaz-Bitwarden
2022-06-24 10:23:37 -04:00
parent 857b45bff2
commit a3aa6c41f7
3 changed files with 40 additions and 8 deletions

15
apps/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

View File

@@ -0,0 +1,21 @@
{
"compilerOptions": {
"moduleResolution": "node",
"noImplicitAny": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "es6",
"target": "ES2016",
"allowJs": true,
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@bitwarden/common/*": ["../../libs/common/src/*"],
"@bitwarden/angular/*": ["../../libs/angular/src/*"]
}
},
"angularCompilerOptions": {
"preserveWhitespaces": true
},
"include": ["src"]
}

View File

@@ -255,11 +255,7 @@ export class ImportComponent implements OnInit {
}
async showPasswordPrompt(fcontents: string, organizationId: string) {
// if (!(await this.enabled())) {
// return true;
// }
const ref = this.modalService.open(this.component, {
const ref = await this.modalService.open(this.component, {
allowMultipleModals: true,
data: {
fileContents: fcontents,
@@ -267,9 +263,9 @@ export class ImportComponent implements OnInit {
},
});
// if (ref == null) {
// return false;
// }
if (ref == null) {
return false;
}
const result = await ref.onClosedPromise();
return result === true;