Merge branch 'feature/viewer-attachment' of https://bitbucket.org/equilibriumito/gabinete-digital-fo into feature/viewer-attachment

This commit is contained in:
Equilibrium ITO
2024-04-08 10:30:43 +01:00
2 changed files with 5 additions and 7 deletions
@@ -388,9 +388,7 @@ export class NewPublicationPage implements OnInit {
if (this.PublicationFromMvService.form.Files.length != 0) {
if (!window["sharedContent"]) {
this.close();
}
this.close();
this.PublicationFromMvService.publicationType = this.publicationType as any
this.PublicationFromMvService.setFolderId(this.folderId)
@@ -122,7 +122,7 @@ export class PublicationFromMvService {
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')
}
@@ -203,7 +203,7 @@ export class PublicationFromMvService {
publication.DocumentId = null;
publication.ProcessId = this.folderId
if(this.form.cancel) {
if(this.form.cancel == false) {
window['upload-header-set-remove'](this.id);
return false
}
@@ -212,9 +212,9 @@ export class PublicationFromMvService {
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')
} else if (this.publicationType == '2' && !this.form.cancel) {
} else if (this.publicationType == '2') {
this.httpErroHandle.httpsSucessMessagge('Criar publicação')
}