mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Merge branch 'feature/viewer-attachment' of https://bitbucket.org/equilibriumito/gabinete-digital-fo into feature/viewer-attachment
This commit is contained in:
@@ -388,9 +388,7 @@ export class NewPublicationPage implements OnInit {
|
|||||||
|
|
||||||
if (this.PublicationFromMvService.form.Files.length != 0) {
|
if (this.PublicationFromMvService.form.Files.length != 0) {
|
||||||
|
|
||||||
if (!window["sharedContent"]) {
|
this.close();
|
||||||
this.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.PublicationFromMvService.publicationType = this.publicationType as any
|
this.PublicationFromMvService.publicationType = this.publicationType as any
|
||||||
this.PublicationFromMvService.setFolderId(this.folderId)
|
this.PublicationFromMvService.setFolderId(this.folderId)
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export class PublicationFromMvService {
|
|||||||
|
|
||||||
const response = await this.publications.UpdatePublication(publication.ProcessId, publication).toPromise()
|
const response = await this.publications.UpdatePublication(publication.ProcessId, publication).toPromise()
|
||||||
|
|
||||||
if (!this.form.cancel) {
|
if (this.form.cancel == false) {
|
||||||
this.httpErroHandle.httpsSucessMessagge('Editar publicação')
|
this.httpErroHandle.httpsSucessMessagge('Editar publicação')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ export class PublicationFromMvService {
|
|||||||
publication.DocumentId = null;
|
publication.DocumentId = null;
|
||||||
publication.ProcessId = this.folderId
|
publication.ProcessId = this.folderId
|
||||||
|
|
||||||
if(this.form.cancel) {
|
if(this.form.cancel == false) {
|
||||||
window['upload-header-set-remove'](this.id);
|
window['upload-header-set-remove'](this.id);
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -212,9 +212,9 @@ export class PublicationFromMvService {
|
|||||||
|
|
||||||
await this.publications.CreatePublication(publication.ProcessId, publication).toPromise()
|
await this.publications.CreatePublication(publication.ProcessId, publication).toPromise()
|
||||||
|
|
||||||
if (this.publicationType == '1' && !this.form.cancel) {
|
if (this.publicationType == '1') {
|
||||||
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
||||||
} else if (this.publicationType == '2' && !this.form.cancel) {
|
} else if (this.publicationType == '2') {
|
||||||
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user