diff --git a/src/app/pages/chat/chat.page.html b/src/app/pages/chat/chat.page.html index 62fa07099..5e529eb78 100644 --- a/src/app/pages/chat/chat.page.html +++ b/src/app/pages/chat/chat.page.html @@ -23,7 +23,7 @@ - diff --git a/src/app/pages/chat/chat.page.ts b/src/app/pages/chat/chat.page.ts index 32a7371b3..a8ffdb178 100644 --- a/src/app/pages/chat/chat.page.ts +++ b/src/app/pages/chat/chat.page.ts @@ -91,6 +91,7 @@ export class ChatPage implements OnInit { /* Fim websockets variables*/ loggedUserChat:any; + hideRefreshBtn = true; constructor( private http:HttpClient, @@ -120,7 +121,25 @@ export class ChatPage implements OnInit { //this.sendMsg(); /* Fim websocket functions */ + this.hideRefreshButton(); } + +hideRefreshButton(){ + window.onresize = (event) => { + if( window.innerWidth < 801) { + this.hideRefreshBtn = false; + } + else{ + this.hideRefreshBtn = true; + } + } + if(window.innerWidth < 801){ + console.log('YASS'); + this.hideRefreshBtn = false; + } +} + + loadMessage(){ this.chatService.messages.subscribe(msg => { console.log("Response from websocket: " + msg); diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.html b/src/app/pages/gabinete-digital/gabinete-digital.page.html index 522bfcfb4..346097d46 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.html +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.html @@ -15,7 +15,7 @@
Gabinete Digital -
diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.ts b/src/app/pages/gabinete-digital/gabinete-digital.page.ts index d0fc37eea..82eca3467 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.ts +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.ts @@ -74,6 +74,8 @@ export class GabineteDigitalPage implements OnInit { mdgpr = "MDGPR"; pr = "PR"; + hideRefreshBtn = true; + @ViewChild(ExpedientsPage) expedientesPage: ExpedientsPage; @ViewChild(PendentesPage) pendentesListPage: PendentesPage; @ViewChild(EventsToApprovePage) eventsToApprove: EventsToApprovePage; @@ -124,6 +126,22 @@ export class GabineteDigitalPage implements OnInit { } }); + this.hideRefreshButton(); + } + + hideRefreshButton(){ + window.onresize = (event) => { + if( window.innerWidth < 801) { + this.hideRefreshBtn = false; + } + else{ + this.hideRefreshBtn = true; + } + } + if(window.innerWidth < 801){ + console.log('YASS'); + this.hideRefreshBtn = false; + } } checkRoutes(){ diff --git a/src/app/pages/publications/publications.page.html b/src/app/pages/publications/publications.page.html index c071b0d24..43b29a116 100644 --- a/src/app/pages/publications/publications.page.html +++ b/src/app/pages/publications/publications.page.html @@ -24,7 +24,7 @@ -
diff --git a/src/app/pages/publications/publications.page.ts b/src/app/pages/publications/publications.page.ts index 4e9224928..7951ed6fe 100644 --- a/src/app/pages/publications/publications.page.ts +++ b/src/app/pages/publications/publications.page.ts @@ -48,6 +48,7 @@ export class PublicationsPage implements OnInit { // from publication details //publication: object; + hideRefreshBtn = true; constructor( private router: Router, @@ -67,7 +68,25 @@ export class PublicationsPage implements OnInit { this.getActions(); } }); + + this.hideRefreshButton(); } + + hideRefreshButton(){ + window.onresize = (event) => { + if( window.innerWidth < 801) { + this.hideRefreshBtn = false; + } + else{ + this.hideRefreshBtn = true; + } + } + if(window.innerWidth < 801){ + console.log('YASS'); + this.hideRefreshBtn = false; + } + } + doRefresh(event) { this.getActions();