perbaikan service
This commit is contained in:
parent
efb6ae0060
commit
768c9ee6ca
|
@ -1,4 +1,4 @@
|
|||
<div class="app-content content" style="background-color: #000000 !important">
|
||||
<div class="app-content content" style="background-color: #FBFBFB !important">
|
||||
<div class="content-wrapper">
|
||||
<div class="content-header row mb-1">
|
||||
<app-breadcrumb class="col-12" [breadcrumb]="breadcrumb"></app-breadcrumb>
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
style="border-color: #bef264 !important"
|
||||
class="switchery"
|
||||
switchColor="black"
|
||||
color="rgb(190, 242, 100)"
|
||||
color="rgb(55, 166, 71)"
|
||||
size="small"
|
||||
[checked]="item.status_id === 2"
|
||||
(change)="switchChanged($event, item)"
|
||||
|
|
|
@ -14,6 +14,7 @@ import { jwtDecode } from "jwt-decode";
|
|||
import { Router } from "@angular/router";
|
||||
import { switchMap, debounceTime, mapTo, startWith } from "rxjs/operators";
|
||||
import { AuthService } from "src/app/_services/auth.service";
|
||||
import { error } from "console";
|
||||
|
||||
const BASE_URL = "https://kapi.absys.ninja/hemat";
|
||||
interface CustomJwtPayload {
|
||||
|
@ -167,6 +168,9 @@ export class LoginService {
|
|||
JSON.stringify(userProfile)
|
||||
);
|
||||
window.location.reload();
|
||||
}, (error) => {
|
||||
console.error(error);
|
||||
this.checkTokenAndRedirect();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue