mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix table succes message
This commit is contained in:
@@ -2,18 +2,6 @@
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
},
|
||||
{
|
||||
"path": "../beast-ORM-v0"
|
||||
},
|
||||
{
|
||||
"path": "../new-doc"
|
||||
},
|
||||
{
|
||||
"path": "../IDOC"
|
||||
},
|
||||
{
|
||||
"path": "../sih"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
|
||||
@@ -211,11 +211,7 @@ export class PublicationFromMvService {
|
||||
try {
|
||||
|
||||
await this.publications.CreatePublication(publication.ProcessId, publication).toPromise()
|
||||
if (this.publicationType == '1') {
|
||||
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
||||
} else if (this.publicationType == '2') {
|
||||
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
||||
}
|
||||
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
||||
|
||||
// this.goBackToViewPublications.emit();
|
||||
window['upload-header-set-remove'](this.id);
|
||||
|
||||
@@ -127,7 +127,17 @@ export class PublicationFolderService {
|
||||
this.showLoader = true;
|
||||
|
||||
try {
|
||||
const publicationIds = await this.publications.GetPublicationsList(folderId).toPromise();
|
||||
const publicationIds: number[] = await this.publications.GetPublicationsList(folderId).toPromise();
|
||||
|
||||
console.log(publicationIds, new Date());
|
||||
console.log(this.publicationList[folderId].map(e => e.DocumentId), 'current list')
|
||||
for (let localPublication of this.publicationList[folderId]) {
|
||||
|
||||
const apiPublication = publicationIds.includes(localPublication.DocumentId)
|
||||
if (!apiPublication) {
|
||||
this.deletePost(folderId, localPublication.DocumentId)
|
||||
}
|
||||
}
|
||||
|
||||
this.createPublicationList(folderId)
|
||||
let loadLater = []
|
||||
@@ -145,14 +155,6 @@ export class PublicationFolderService {
|
||||
await this.loadPublication(publicationId, folderId)
|
||||
}
|
||||
|
||||
for (let localPublication of this.publicationList[folderId]) {
|
||||
|
||||
const apiPublication = publicationIds.includes(localPublication.DocumentId)
|
||||
if (!apiPublication) {
|
||||
this.deletePost(folderId, localPublication.DocumentId)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.showLoader = false;
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ import { environment as oaprProd } from './suport/oapr'
|
||||
import { DevDev } from './suport/dev'
|
||||
|
||||
|
||||
export const environment: Environment = oaprProd;
|
||||
export const environment: Environment = DevDev;
|
||||
|
||||
@@ -4,4 +4,4 @@ import { environment as oaprDev } from './suport/oapr'
|
||||
import { DevDev } from './suport/dev'
|
||||
|
||||
|
||||
export const environment: Environment = oaprDev
|
||||
export const environment: Environment = DevDev
|
||||
|
||||
Reference in New Issue
Block a user