Skip to content

Button for trace, schema on SQL Editor#3757

Open
Vuelos wants to merge 8 commits into
azerothcore:masterfrom
Vuelos:SQLEditor
Open

Button for trace, schema on SQL Editor#3757
Vuelos wants to merge 8 commits into
azerothcore:masterfrom
Vuelos:SQLEditor

Conversation

@Vuelos
Copy link
Copy Markdown

@Vuelos Vuelos commented May 15, 2026

Button to show-hide trace: (used on SQL editor and DB login)
imagen
imagen
imagen

Load Tables and columns to schema (used on SQL Editor autocomplete)
imagen

<td>{{ error.stack }}</td>
<td>
<button class="btn btn-primary btn-sm" (click)="showTrace = !showTrace">
{{ showTrace ? 'Hide trace' : 'Show trace' }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use translations keys for these two strings

Comment thread libs/features/sql-editor/src/sql-editor.service.ts Outdated
Comment thread libs/features/sql-editor/src/sql-editor.service.ts Outdated
this.schemaLoading.set(false);
},
error: () => {
this.schemaLoading.set(false);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could move this into pipe finalize, ex.

 .pipe(
...
finalize() => this.schemaLoading.set(false)
)

and removing it from next and error

templateUrl: './query-error.component.html',
styleUrls: ['./query-error.component.scss'],
imports: [],
imports: [TranslateModule],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not use translate module, import the related directive or component that translate module is using (same of common module)
Today there is no reason to use modules in Angular

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants