mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
last sentry changed
This commit is contained in:
@@ -797,8 +797,8 @@ export class AgendaPage implements OnInit {
|
||||
this.listToPresent = this.CalendarStore.eventSource
|
||||
|
||||
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
console.log(this.CalendarStore.eventSource)
|
||||
console.log('this.TimelineMDList', this.TimelineMDList)
|
||||
// console.log(this.CalendarStore.eventSource)
|
||||
// console.log('this.TimelineMDList', this.TimelineMDList)
|
||||
|
||||
|
||||
this.myCal.update();
|
||||
@@ -847,7 +847,7 @@ export class AgendaPage implements OnInit {
|
||||
|
||||
|
||||
this.TimelinePRList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
console.log('this.TimelinePRList', this.TimelinePRList)
|
||||
// console.log('this.TimelinePRList', this.TimelinePRList)
|
||||
//
|
||||
|
||||
this.myCal.update();
|
||||
|
||||
@@ -79,54 +79,54 @@ export class EventsPage implements OnInit {
|
||||
private changeProfileService: ChangeProfileService,
|
||||
) {
|
||||
|
||||
this.loggeduser = SessionStore.user;
|
||||
// this.loggeduser = SessionStore.user;
|
||||
|
||||
|
||||
this.platform.resize.subscribe(async () => {
|
||||
//
|
||||
//
|
||||
// this.platform.resize.subscribe(async () => {
|
||||
// //
|
||||
// //
|
||||
|
||||
});
|
||||
// });
|
||||
|
||||
window['zipPhoneCallback'] = function (zipphone) {
|
||||
var frame = document.getElementById('home-iframe');
|
||||
if(frame) {
|
||||
frame['contentWindow']['postMessage']({call:'cookies', value: { cookies: {} }});
|
||||
}
|
||||
}
|
||||
// window['zipPhoneCallback'] = function (zipphone) {
|
||||
// var frame = document.getElementById('home-iframe');
|
||||
// if(frame) {
|
||||
// frame['contentWindow']['postMessage']({call:'cookies', value: { cookies: {} }});
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
this.changeProfileService.registerCallback(() => {
|
||||
// this.changeProfileService.registerCallback(() => {
|
||||
|
||||
this.listToPresent = [];
|
||||
this.listToPresentexpediente = []
|
||||
})
|
||||
// this.listToPresent = [];
|
||||
// this.listToPresentexpediente = []
|
||||
// })
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.segment = "Combinada";
|
||||
this.profile = "mdgpr";
|
||||
// this.segment = "Combinada";
|
||||
// this.profile = "mdgpr";
|
||||
|
||||
this.showGreeting();
|
||||
// this.showGreeting();
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if (event instanceof NavigationEnd && event.url == '/home/events') {
|
||||
this.RefreshEvents();
|
||||
setTimeout(() => {
|
||||
this.LoadList();
|
||||
}, 1500)
|
||||
}
|
||||
});
|
||||
this.hideSearch();
|
||||
// this.router.events.forEach((event) => {
|
||||
// if (event instanceof NavigationEnd && event.url == '/home/events') {
|
||||
// this.RefreshEvents();
|
||||
// setTimeout(() => {
|
||||
// this.LoadList();
|
||||
// }, 1500)
|
||||
// }
|
||||
// });
|
||||
// this.hideSearch();
|
||||
|
||||
this.backgroundservice.registerBackService('Online', () => {
|
||||
this.showGreeting();
|
||||
this.RefreshEvents();
|
||||
this.LoadList();
|
||||
this.hideSearch();
|
||||
});
|
||||
// this.backgroundservice.registerBackService('Online', () => {
|
||||
// this.showGreeting();
|
||||
// this.RefreshEvents();
|
||||
// this.LoadList();
|
||||
// this.hideSearch();
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div *ngIf="!SessionStore.hasPin" class="title">Digite o novo PIN</div>
|
||||
|
||||
<div class="terminal">
|
||||
<div class="d-flex pt-25 align-center justify-center pin-4">
|
||||
<div class="d-flex pt-25 align-center justify-center pin-4">
|
||||
<div class="dot" [class.dot-active]="code.length >= 1"></div>
|
||||
<div class="dot" [class.dot-active]="code.length >= 2"></div>
|
||||
<div class="dot" [class.dot-active]="code.length >= 3"></div>
|
||||
@@ -25,19 +25,19 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-flex align-center justify-center">
|
||||
<div [class.hide]="code.length == 4" class="d-flex align-center justify-center">
|
||||
<div class="circle" (click)="setCode('1')">1</div> <div class="circle" (click)="setCode('2')">2</div> <div class="circle" (click)="setCode('3')">3</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-center justify-center">
|
||||
<div [class.hide]="code.length == 4" class="d-flex align-center justify-center">
|
||||
<div class="circle" (click)="setCode('4')">4</div> <div class="circle" (click)="setCode('5')">5</div> <div class="circle" (click)="setCode('6')">6</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-center justify-center">
|
||||
<div [class.hide]="code.length == 4" class="d-flex align-center justify-center">
|
||||
<div class="circle" (click)="setCode('7')">7</div> <div class="circle" (click)="setCode('8')">8</div> <div class="circle" (click)="setCode('9')">9</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-center justify-center">
|
||||
<div [class.hide]="code.length == 4" class="d-flex align-center justify-center">
|
||||
<div class="circle" (click)="setCode('0')">0</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -348,3 +348,8 @@ ion-item{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.hide {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
@@ -38,7 +38,7 @@ export class InactivityPage implements OnInit {
|
||||
loop = false
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
alert('pin')
|
||||
}
|
||||
|
||||
runloop() {
|
||||
@@ -101,6 +101,8 @@ export class InactivityPage implements OnInit {
|
||||
} else {
|
||||
SessionStore.delete()
|
||||
window.localStorage.clear();
|
||||
|
||||
SessionStore.setInativity(true)
|
||||
await this.authService.SetSession(attempt, this.userattempt);
|
||||
}
|
||||
|
||||
@@ -117,9 +119,9 @@ export class InactivityPage implements OnInit {
|
||||
}
|
||||
|
||||
getToken() {
|
||||
this.notificatinsservice.requestPermissions();
|
||||
this.notificatinsservice.registrationError();
|
||||
this.notificatinsservice.getAndpostToken(this.username);
|
||||
// this.notificatinsservice.requestPermissions();
|
||||
// this.notificatinsservice.registrationError();
|
||||
// this.notificatinsservice.getAndpostToken(this.username);
|
||||
}
|
||||
|
||||
setCode(code: string) {
|
||||
@@ -205,6 +207,8 @@ export class InactivityPage implements OnInit {
|
||||
|
||||
enterWithPasswordButton() {
|
||||
this.enterWithPassword = true
|
||||
SessionStore.forceToLoginWithForceToLogInWithPassword = true
|
||||
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ import { MessageModel, DeleteMessageModel } from '../../models/beast-orm';
|
||||
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
|
||||
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
|
||||
import { ChatService } from 'src/app/services/chat.service';
|
||||
import { Platform } from '@ionic/angular';
|
||||
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -49,7 +51,8 @@ export class LoginPage implements OnInit {
|
||||
public p: PermissionService,
|
||||
private RochetChatConnectorService: RochetChatConnectorService,
|
||||
public ChatSystemService: ChatSystemService,
|
||||
private ChatService: ChatService
|
||||
private ChatService: ChatService,
|
||||
private platform: Platform,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -93,9 +96,9 @@ export class LoginPage implements OnInit {
|
||||
}
|
||||
|
||||
getToken() {
|
||||
this.notificatinsservice.requestPermissions();
|
||||
this.notificatinsservice.registrationError();
|
||||
this.notificatinsservice.getAndpostToken(this.username);
|
||||
// this.notificatinsservice.requestPermissions();
|
||||
// this.notificatinsservice.registrationError();
|
||||
// this.notificatinsservice.getAndpostToken(this.username);
|
||||
}
|
||||
|
||||
async Login() {
|
||||
@@ -158,7 +161,13 @@ export class LoginPage implements OnInit {
|
||||
|
||||
this.getToken();
|
||||
|
||||
this.router.navigateByUrl('/home/events', { replaceUrl: true });
|
||||
if(!this.platform.is('desktop') && !this.platform.is('mobileweb')) {
|
||||
this.router.navigateByUrl('/pin', { replaceUrl: true });
|
||||
} else {
|
||||
this.router.navigateByUrl('/home/events');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user