Skip to content

Commit 2b80da4

Browse files
committed
correct maxWindowCount function call and update maxWindows value in settings tests
1 parent c64bfff commit 2b80da4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/altair-app/src/app/modules/altair/components/window-switcher/window-switcher.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</ul>
9292
</nz-dropdown-menu>
9393
}
94-
@if (windowIds().length < maxWindowCount) {
94+
@if (windowIds().length < maxWindowCount()) {
9595
<div class="window-switcher__item" (click)="newWindowChange.emit()">
9696
{{ 'ADD_NEW_WINDOW_TEXT' | translate }}
9797
</div>

packages/altair-app/src/app/modules/altair/store/settings/settings.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('settings', () => {
102102
language: 'en-US',
103103
addQueryDepthLimit: 3,
104104
tabSize: 2,
105-
maxWindows: 50,
105+
maxWindows: 15,
106106
});
107107
});
108108

@@ -118,6 +118,7 @@ describe('settings', () => {
118118
language: 'en-US',
119119
addQueryDepthLimit: 1,
120120
tabSize: 1,
121+
maxWindows: 15,
121122
});
122123
});
123124

@@ -139,6 +140,7 @@ describe('settings', () => {
139140
language: 'en-US',
140141
addQueryDepthLimit: 1,
141142
tabSize: 1,
143+
maxWindows: 15,
142144
});
143145
});
144146

0 commit comments

Comments
 (0)