This commit is contained in:
Peter Maquiran
2024-04-03 17:15:10 +01:00
parent 1d67ea1352
commit 470d79c7ed
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')
}