fixed lint errors
This commit is contained in:
parent
6eed5efedb
commit
c232f8f63f
@ -10,7 +10,7 @@ import {JwksValidationHandler} from "angular-oauth2-oidc-jwks";
|
||||
@Injectable()
|
||||
export class AuthGuard implements CanActivate {
|
||||
|
||||
private _configured: boolean = false;
|
||||
private _configured = false;
|
||||
|
||||
constructor(private readonly _oauthService: OAuthService, private readonly _appConfigService: AppConfigService) {
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ export class FileUploadService {
|
||||
files.forEach(newFile => {
|
||||
this._fileUploadControllerService.uploadFileForm(newFile.file, this._appStateService.activeProject.projectId, 'events', true).subscribe((event) => {
|
||||
if (event.type === HttpEventType.UploadProgress) {
|
||||
newFile.progress = (event.loaded / (event.total || event.loaded) * 100) | 0;
|
||||
newFile.progress = Math.round((event.loaded / (event.total || event.loaded) * 100));
|
||||
}
|
||||
if (event.type === HttpEventType.Response) {
|
||||
if (event.status < 300) {
|
||||
|
||||
@ -10,7 +10,7 @@ import {OverlayRef} from "@angular/cdk/overlay";
|
||||
})
|
||||
export class UploadStatusOverlay implements OnInit {
|
||||
|
||||
collapsed: boolean = false;
|
||||
collapsed = false;
|
||||
|
||||
|
||||
constructor(public readonly uploadService: FileUploadService, private readonly _overlayRef: OverlayRef) {
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
"version": "0.0.25",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build-lint-all": "ng lint --project=red-ui-http --fix && ng build --project=red-ui-http && ng lint --project=red-ui --fix && ng build --project=red-ui --prod",
|
||||
"nx": "nx",
|
||||
"start": "nx serve",
|
||||
"build": "nx build",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user