perbaikan service

This commit is contained in:
Fuzi_fauzia 2024-07-16 15:53:22 +07:00
parent efb6ae0060
commit 768c9ee6ca
3 changed files with 6 additions and 2 deletions

View File

@ -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>

View File

@ -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)"

View File

@ -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();
}
);
}