Browse Source

Navigate to content back with history after create.

pull/747/head
Sebastian 4 years ago
parent
commit
67a0f3720e
  1. 4
      frontend/app/features/content/pages/content/content-page.component.ts

4
frontend/app/features/content/pages/content/content-page.component.ts

@ -182,8 +182,10 @@ export class ContentPageComponent extends ResourceOwner implements CanComponentD
this.contentsState.create(value, publish)
.subscribe({
next: () => {
next: content => {
this.contentForm.submitCompleted({ noReset: true });
this.router.navigate([content.id, 'history'], { relativeTo: this.route.parent! });
},
error: error => {
this.contentForm.submitFailed(error);

Loading…
Cancel
Save