From b0cb52fb0f6c8362645419420cf6da0ad75b70ff Mon Sep 17 00:00:00 2001 From: Thomas Hansen Date: Wed, 20 Dec 2023 18:03:58 +0200 Subject: [PATCH] b --- .../components/codemirror-sql-formly.component.ts | 7 ++++--- .../components/codemirror-sql-formly.scss | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.scss diff --git a/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.component.ts b/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.component.ts index ecdf73cc01..b0e41a9c78 100644 --- a/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.component.ts +++ b/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.component.ts @@ -17,7 +17,8 @@ import { SqlService } from 'src/app/services/sql.service'; */ @Component({ selector: 'app-codemirror-formly', - template: ``, + template: ``, + styleUrls: ['./codemirror-sql-formly.scss'] }) export class CodemirrorSqlFormlyComponent extends FieldType implements OnInit { @@ -106,12 +107,12 @@ export class CodemirrorSqlFormlyComponent extends FieldType imp next: (result: Databases) => { - this.databases = result; this.generalService.hideLoading(); + this.databases = result; this.databaseChanged(); }, - error: (error: any) => { + error: () => { this.generalService.hideLoading(); this.generalService.showFeedback('Not a valid database-type/connection-string combination', 'errorMessage'); diff --git a/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.scss b/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.scss new file mode 100644 index 0000000000..2f029b72a3 --- /dev/null +++ b/frontend/src/app/components/protected/create/hyper-ide/components/parametrise-action-dialog/components/codemirror-sql-formly.scss @@ -0,0 +1,4 @@ + +::ng-deep .sql-formly-editor .CodeMirror { + max-height: 150px; +}