Skip to content

Commit

Permalink
queryMode - remove clearOption
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Alloza committed May 21, 2024
1 parent 7838dd1 commit 9cac85a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ <h6 id="p-header" class="panel-title" style="cursor: default">
<div (window:resize)="onResize($event)" class="grid">

<div id="queryModelSelector" class="col-12">
<p-dropdown class="float-right" [(ngModel)]="selectedQueryMode" [options]="queryModes"
[autoDisplayFirst]="false" [showClear]="true"
(ngModelChange)="changeQueryMode()" (onClear)="selectedQueryMode=null">
<p-dropdown class="float-right" [(ngModel)]="selectedQueryMode" [options]="queryModes" (ngModelChange)="changeQueryMode()">
</p-dropdown >
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy {
{ label: 'EDA Query', value: 'EDA' },
{ label: 'SQL Query', value: 'SQL' },
];
} else if (!standardQueryMode && !treeQueryMode) {
}

if ((!standardQueryMode && !treeQueryMode) || this.edaPanels.length === 1) {
panel.queryModes = [
{ label: 'EDA Query', value: 'EDA' },
{ label: 'SQL Query', value: 'SQL' },
Expand Down

0 comments on commit 9cac85a

Please sign in to comment.