mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix edit publication on web
This commit is contained in:
@@ -48,7 +48,7 @@ export class NewPublicationPage implements OnInit {
|
||||
validateFrom = false
|
||||
|
||||
@Input() publication!: Publication;
|
||||
@Input() publicationType: string;
|
||||
@Input() publicationType: ActionType;
|
||||
@Input() folderId: string;
|
||||
@Input() documentId: string;
|
||||
|
||||
@@ -364,6 +364,7 @@ export class NewPublicationPage implements OnInit {
|
||||
return false
|
||||
}
|
||||
|
||||
this.PublicationFromMvService.setFolderId(this.folderId)
|
||||
this.PublicationFromMvService.setFolderId(this.folderId)
|
||||
this.goBack();
|
||||
await this.PublicationFromMvService.save()
|
||||
@@ -407,6 +408,7 @@ export class NewPublicationPage implements OnInit {
|
||||
else if (this.publicationType == ActionType.edit) {
|
||||
this.publicationTitle = 'Editar Publicação';
|
||||
}
|
||||
this.PublicationFromMvService.publicationType = this.publicationType
|
||||
}
|
||||
|
||||
async goBack() {
|
||||
|
||||
Reference in New Issue
Block a user