@ -77,13 +77,11 @@ export class RequestPageComponent implements OnInit {
if ( this . schemaName ) {
this . infoTableService . getTablesWithFilterAndSchema ( this . filterTable , this . schemaName ) . subscribe (
( response : InfoTable [ ] ) = > {
console . log ( response ) ;
this . tablesBySchema = response ;
} ) ;
} else {
this . infoTableService . getTablesWithFilter ( this . filterTable ) . subscribe (
( response : InfoTable [ ] ) = > {
console . log ( response ) ;
this . infoTable = response ;
} ) ;
}
@ -92,11 +90,9 @@ export class RequestPageComponent implements OnInit {
}
public divideColumns ( nameSch : String , tempsTab : InfoTable ) : void {
console . log ( nameSch , tempsTab . nameTable )
this . infoColumnService . getSelectedColumns ( nameSch , tempsTab . nameTable ) . subscribe (
( response : InfoColumn [ ] ) = > {
this . infoColumn = response ;
console . log ( this . infoColumn )
} ,
( error : HttpErrorResponse ) = > {
alert ( error . message )
@ -132,14 +128,6 @@ export class RequestPageComponent implements OnInit {
this . selectedSchema = this . schemaData . nameSchema ;
}
if ( this . selectedSchema ) {
// this.infoTableService.getTablesBySchema(this.selectedSchema).subscribe(
// (response : InfoTable[]) => {
// this.tablesBySchema = response;
// },
// (error: HttpErrorResponse) => {
// alert(error.message)
// }
// );
if ( this . tableData ) {
this . divideColumns ( this . selectedSchema , this . tableData ) ;
}
@ -151,7 +139,6 @@ export class RequestPageComponent implements OnInit {
this . infoTableService . getSchemasByTable ( this . tableData . nameTable ) . subscribe (
( response : InfoTable [ ] ) = > {
this . schemasByTable = response ;
console . log ( response ) ;
} ,
( error : HttpErrorResponse ) = > {
alert ( error . message )