implement refresh token
This commit is contained in:
@@ -27,7 +27,8 @@ export class AddEditMasterComponent implements OnInit {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.createForm();
|
||||
this.dataListMaster();
|
||||
if (this.mode === "add") {
|
||||
@@ -78,7 +79,7 @@ export class AddEditMasterComponent implements OnInit {
|
||||
const dataCategory = data.data.find(
|
||||
(item) => item.name === "master_status"
|
||||
).headerDetailParam;
|
||||
this.dataMasterStatus = dataCategory.filter(item => item.statusName.toLowerCase() === "aktif");
|
||||
this.dataMasterStatus = dataCategory.filter(item => item.statusName.toLowerCase() === "aktif" || item.status.toLowerCase() === "71" || item.status.toLowerCase() === "71");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ export class AddEditMasterBuildingComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.createForm();
|
||||
this.listDataStatus();
|
||||
if (this.mode === "add") {
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterBuildingComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Building",
|
||||
links: [
|
||||
|
||||
@@ -33,7 +33,6 @@ export class MasterCategoryComponent implements OnInit {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
// this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
|
||||
@@ -30,7 +30,6 @@ export class MasterDurationUseComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
// this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterFloorComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Floor",
|
||||
links: [
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterRoleComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Role",
|
||||
links: [
|
||||
|
||||
@@ -30,7 +30,8 @@ export class AddEditMasterRoomComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.createForm();
|
||||
this.listDataStatus();
|
||||
this.listDataBuilding();
|
||||
|
||||
@@ -27,7 +27,8 @@ export class MasterRoomComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Room",
|
||||
links: [
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterStatusComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Status",
|
||||
links: [
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterTypeComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Type",
|
||||
links: [
|
||||
|
||||
@@ -30,7 +30,8 @@ export class MasterVoltageComponent {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.authService.startTokenCheck();
|
||||
this.authService.startTrackingActivity();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Voltage",
|
||||
links: [
|
||||
|
||||
Reference in New Issue
Block a user