mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
improve
This commit is contained in:
@@ -214,37 +214,43 @@ export class PublicationsPage implements OnInit {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
this.publicationsEventFolderList = new Array();
|
||||
this.publicationsTravelFolderList = new Array();
|
||||
this.storage.get('actionsEvents').then((events) => {
|
||||
this.storage.get('actionsEvents').then((events = []) => {
|
||||
|
||||
events.forEach(data => {
|
||||
let folder: PublicationFolder = {
|
||||
ProcessId: data.ProcessId,
|
||||
Description: data.Description,
|
||||
Detail: data.Detail,
|
||||
DateBegin: data.DateBegin,
|
||||
DateEnd: data.DateEnd,
|
||||
ActionType: data.ActionType,
|
||||
}
|
||||
if(Array.isArray(events)) {
|
||||
events.forEach(data => {
|
||||
let folder: PublicationFolder = {
|
||||
ProcessId: data.ProcessId,
|
||||
Description: data.Description,
|
||||
Detail: data.Detail,
|
||||
DateBegin: data.DateBegin,
|
||||
DateEnd: data.DateEnd,
|
||||
ActionType: data.ActionType,
|
||||
}
|
||||
|
||||
this.publicationsEventFolderList.push(folder);
|
||||
this.showLoader = false;
|
||||
});
|
||||
}
|
||||
|
||||
this.publicationsEventFolderList.push(folder);
|
||||
this.showLoader = false;
|
||||
});
|
||||
});
|
||||
this.storage.get('actionsViagens').then((viagens = []) => {
|
||||
|
||||
viagens.forEach(data => {
|
||||
let folder: PublicationFolder = {
|
||||
ProcessId: data.ProcessId,
|
||||
Description: data.Description,
|
||||
Detail: data.Detail,
|
||||
DateBegin: data.DateBegin,
|
||||
DateEnd: data.DateEnd,
|
||||
ActionType: data.ActionType,
|
||||
}
|
||||
|
||||
this.publicationsTravelFolderList.push(folder);
|
||||
this.showLoader = false;
|
||||
});
|
||||
if(Array.isArray(viagens)) {
|
||||
viagens.forEach(data => {
|
||||
let folder: PublicationFolder = {
|
||||
ProcessId: data.ProcessId,
|
||||
Description: data.Description,
|
||||
Detail: data.Detail,
|
||||
DateBegin: data.DateBegin,
|
||||
DateEnd: data.DateEnd,
|
||||
ActionType: data.ActionType,
|
||||
}
|
||||
|
||||
this.publicationsTravelFolderList.push(folder);
|
||||
this.showLoader = false;
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
} else {
|
||||
this.sqliteservice.getAllActions().then((actions: any[]) => {
|
||||
@@ -311,7 +317,7 @@ export class PublicationsPage implements OnInit {
|
||||
|
||||
this.closeDesktopComponent();
|
||||
this.idSelected = '';
|
||||
|
||||
|
||||
if (window.innerWidth < 701) {
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
|
||||
Reference in New Issue
Block a user