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