@if (post) {
  <p-dialog header='Modifier "{{ post.title }}"'
            [modal]="true"
            [closable]="true"
            [(visible)]="opened">
    <app-post-form [actualAuthor]="actualAuthor"
                   [postId]="post.id"
                   [isUpdateMode]="true"
                   [title]="post.title"
                   [category]="post.category"
                   [description]="post.description"
                   [body]="post.body"
                   (postUpdate)="onSubmit(post)"/>
  </p-dialog>
}
