mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix update bug
This commit is contained in:
@@ -90,6 +90,10 @@ export class PublicationsPage implements OnInit {
|
||||
|
||||
window['goToPublicationsList'] = this.goToPublicationsList
|
||||
|
||||
window['updateAction'] = () => {
|
||||
this.getActions()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +184,7 @@ export class PublicationsPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
getActions() {
|
||||
getActions = () => {
|
||||
this.showLoader = true
|
||||
|
||||
this.publications.GetPublicationFolderList().subscribe(async res => {
|
||||
@@ -193,24 +197,6 @@ export class PublicationsPage implements OnInit {
|
||||
|
||||
this.showLoader = false;
|
||||
|
||||
// (async ()=> {
|
||||
|
||||
// const created = await ActionModel.create(folders)
|
||||
// const stored = await ActionModel.all()
|
||||
|
||||
// const notPresentOnTheRequest: ActionModel[] = stored.filter(e => {
|
||||
// return !folders.find(b => e.ProcessId == b.ProcessId)
|
||||
// })
|
||||
|
||||
// for (let ActionModelToDelete of notPresentOnTheRequest) {
|
||||
// ActionModelToDelete.delete()
|
||||
// }
|
||||
|
||||
// // console.log({created, stored, folders, toDeletes})
|
||||
|
||||
// })()
|
||||
|
||||
|
||||
}, (error) => {
|
||||
this.showLoader = false;
|
||||
this.getFromDB()
|
||||
|
||||
Reference in New Issue
Block a user