This commit is contained in:
Peter Maquiran
2022-07-04 14:08:51 +01:00
parent f4d7bcfd23
commit 6674d459b1
6 changed files with 13 additions and 63 deletions
+2 -2
View File
@@ -224,8 +224,8 @@
</app-group-contacts>
<app-group-messages
*ngIf="showGroupMessages"
[style.display]="showEmptyComponent ? 'flex' : 'none'"
*ngIf="showGroupMessages && wsChatMethodsService.deleteRecently(roomId) == false"
[style.display]="showEmptyComponent ? 'flex' : 'none'"
(closeAllDesktopComponents)="closeAllDesktopComponents()"
(showEmptyContainer)="showEmptyContainer()"
(openGroupContacts)="openGroupContactsPage($event)"
-10
View File
@@ -129,16 +129,6 @@ export class ChatPage implements OnInit {
ngOnInit() {
/* let data = {
status: "success",
data: {
userId: "CqYSKR5hrAumZihs7",
authToken: "bvh5BH98Av5ShMnEW94Cwm1Hf-yHEHbl121ijq5Odc_sdvs"
}
}
SessionStore.user.ChatData = data
SessionStore.save() */
// console.log(SessionStore.user.ChatData.data.authToken)
this.chatService.refreshtoken();
this.segment = "Contactos";
@@ -149,19 +149,6 @@ export class GabineteDigitalPage implements OnInit {
public p: PermissionService
) {
this.loggeduser = authService.ValidatedUser;
window.onresize = (event) => {
// if not mobile remove all component
if (window.innerWidth < 701) {
this.modalController.dismiss();
this.segmentVista = "listview";
}
else {
this.segmentVista = "boxview";
}
};
this.checkRoutes();
}
closeAllDesktopComponent() {
this.desktopComponent = {
@@ -173,42 +160,6 @@ export class GabineteDigitalPage implements OnInit {
ngOnInit() {
if (window.innerWidth < 701) {
this.segmentVista = "listview";
}
else {
this.segmentVista = "boxview"
}
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url == pathname) {
this.waitForDomService.selector({
selector: 'app-gabinete-digital ion-content .aside-wrapper',
callback: () => {
this.checkRoutes();
// console.log('FIRST CALL')
this.LoadCounts();
}
})
}
});
this.hideRefreshButton();
this.waitForDomService.selector({
selector: 'app-gabinete-digital ion-content .aside-wrapper',
callback: () => {
// console.log('SECOND CALL')
this.loadAllProcesses();
}
})
this.backgroundservice.registerBackService('Online', () => {
this.loadAllProcesses();
});
}
+2
View File
@@ -44,3 +44,5 @@
</div>
</ion-content>