Format code
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { HttpErrorResponse } from "@angular/common/http";
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { AuthService } from "src/app/auth/auth.service";
|
||||
import { LoginService } from "src/app/auth/login.service";
|
||||
import { ErrorService } from "src/app/services/error.service";
|
||||
import { PageSecurityService } from "src/app/services/pageSecurity.service";
|
||||
import { LoaderService } from "../loader/loader.service";
|
||||
import { NotificationService } from "src/app/services/notification.service";
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AuthService } from 'src/app/auth/auth.service';
|
||||
import { LoginService } from 'src/app/auth/login.service';
|
||||
import { ErrorService } from 'src/app/services/error.service';
|
||||
import { PageSecurityService } from 'src/app/auth/pageSecurity.service';
|
||||
import { LoaderService } from '../loader/loader.service';
|
||||
import { NotificationService } from 'src/app/services/notification.service';
|
||||
|
||||
@Component({
|
||||
selector: "app-header",
|
||||
templateUrl: "./header.component.html",
|
||||
styleUrls: ["./header.component.scss"],
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
})
|
||||
export class HeaderComponent implements OnInit {
|
||||
userLoggedIn: Boolean = false;
|
||||
@@ -37,32 +37,32 @@ export class HeaderComponent implements OnInit {
|
||||
if (resp.successful) {
|
||||
// alert("Signed out successfully"); /// XXX
|
||||
this.notificationService.showSnackbar(
|
||||
"Signed out successfully",
|
||||
'Signed out successfully',
|
||||
3000,
|
||||
"snackbar-success",
|
||||
'snackbar-success',
|
||||
true,
|
||||
"check"
|
||||
'check'
|
||||
);
|
||||
this.loginService.removeSessionCurrentUser();
|
||||
this.pageSecurityService.gotoLoginPage();
|
||||
} else {
|
||||
// alert("Signed out failed with error. " + resp.detailedMessage); /// XXX
|
||||
this.notificationService.showSnackbar(
|
||||
"Signed out failed with error. " + resp.detailedMessage,
|
||||
'Signed out failed with error. ' + resp.detailedMessage,
|
||||
3000,
|
||||
"snackbar-warning",
|
||||
'snackbar-warning',
|
||||
true,
|
||||
"information-slab-circle-outline"
|
||||
'information-slab-circle-outline'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// alert("Signed out failed with error. Unknown error."); /// XXX
|
||||
this.notificationService.showSnackbar(
|
||||
"Signed out failed with error. Unknown error.",
|
||||
'Signed out failed with error. Unknown error.',
|
||||
3000,
|
||||
"snackbar-warning",
|
||||
'snackbar-warning',
|
||||
true,
|
||||
"information-slab-circle-outline"
|
||||
'information-slab-circle-outline'
|
||||
);
|
||||
}
|
||||
this.loaderService.hide();
|
||||
|
||||
Reference in New Issue
Block a user