diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index 71f9871a9..04b32ee9a 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -132,6 +132,10 @@ export class AppComponent { 'cassandra', this.domSanitizer.bypassSecurityTrustResourceUrl('/assets/icons/db-logos/сassandra_logo.svg'), ); + this.matIconRegistry.addSvgIcon( + 'cassandra-dark', + this.domSanitizer.bypassSecurityTrustResourceUrl('/assets/icons/db-logos/сassandra_logo_dark.svg'), + ); this.matIconRegistry.addSvgIcon( 'redis', this.domSanitizer.bypassSecurityTrustResourceUrl('/assets/icons/db-logos/redis_logo.svg'), diff --git a/frontend/src/app/components/charts/chart-edit/chart-edit.component.spec.ts b/frontend/src/app/components/charts/chart-edit/chart-edit.component.spec.ts index 6b9e18fc1..994f01bfa 100644 --- a/frontend/src/app/components/charts/chart-edit/chart-edit.component.spec.ts +++ b/frontend/src/app/components/charts/chart-edit/chart-edit.component.spec.ts @@ -71,7 +71,7 @@ describe('ChartEditComponent', () => { }; mockUiSettingsService = { - editorTheme: 'vs-dark', + isDarkMode: true, getUiSettings: vi.fn().mockReturnValue(of({})), }; diff --git a/frontend/src/app/components/charts/chart-edit/chart-edit.component.ts b/frontend/src/app/components/charts/chart-edit/chart-edit.component.ts index 09ac816c7..fb31c787a 100644 --- a/frontend/src/app/components/charts/chart-edit/chart-edit.component.ts +++ b/frontend/src/app/components/charts/chart-edit/chart-edit.component.ts @@ -404,7 +404,7 @@ export class ChartEditComponent implements OnInit { this.queryId.set(this.route.snapshot.paramMap.get('query-id') || ''); this.isEditMode.set(!!this.queryId()); - this.codeEditorTheme = this._uiSettings.editorTheme; + this.codeEditorTheme = this._uiSettings.isDarkMode ? 'vs-dark' : 'vs'; if (this.isEditMode()) { this.manualExpanded.set(true); diff --git a/frontend/src/app/components/connections-list/own-connections/own-connections.component.html b/frontend/src/app/components/connections-list/own-connections/own-connections.component.html index b64fef9a4..591c3a2a1 100644 --- a/frontend/src/app/components/connections-list/own-connections/own-connections.component.html +++ b/frontend/src/app/components/connections-list/own-connections/own-connections.component.html @@ -2,7 +2,7 @@

Create your own test connection

- Create first connection + Create your first connection