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