mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
fix loader
This commit is contained in:
@@ -59,7 +59,7 @@ export class PedidosPage implements OnInit {
|
||||
) {
|
||||
|
||||
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
|
||||
this.doRefresh()
|
||||
this.LoadList()
|
||||
} else {
|
||||
this.LoadList()
|
||||
}
|
||||
@@ -121,7 +121,12 @@ export class PedidosPage implements OnInit {
|
||||
this.skeletonLoader = false
|
||||
}
|
||||
|
||||
doRefresh() {
|
||||
doRefresh(event) {
|
||||
if (event) {
|
||||
setTimeout(() => {
|
||||
event.target.complete();
|
||||
}, 2000);
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.LoadList();
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user