Browse Source

Redirect directly to new schema..

pull/214/head
Sebastian Stehle 8 years ago
parent
commit
9013bb74f7
  1. 4
      src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.ts

4
src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.ts

@ -6,6 +6,7 @@
*/
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormControl } from '@angular/forms';
import { Subscription } from 'rxjs';
@ -51,6 +52,7 @@ export class SchemasPageComponent implements OnDestroy, OnInit {
public import: any;
constructor(public readonly ctx: AppContext,
private readonly router: Router,
private readonly schemasService: SchemasService
) {
}
@ -117,6 +119,8 @@ export class SchemasPageComponent implements OnDestroy, OnInit {
this.emitSchemaCreated(schema);
this.addSchemaDialog.hide();
this.router.navigate([ schema.name ], { relativeTo: this.ctx.route });
}
private emitSchemaCreated(schema: SchemaDto) {

Loading…
Cancel
Save