Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[minWidth]="250"
[maxWidth]="600"
[defaultWidth]="400"
storageKey="sidebar-width"
storageKey="live-channels-sidebar-width"
>
<div class="sidebar-header category-content-header">
<div class="category-meta">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,20 @@ describe('StalkerLiveStreamLayoutComponent', () => {
expect(stalkerStore.setItvChannels).not.toHaveBeenCalled();
});

it('persists the channels sidebar width under a dedicated storage key', () => {
// The shell context panel (category sidebar) is visible at the same
// time as this sidebar and persists its width under the shared
// "sidebar-width" key. Reusing that key here makes the two panels
// overwrite each other's stored width across reloads.
fixture.detectChanges();

const sidebar: HTMLElement =
fixture.nativeElement.querySelector('.sidebar');
expect(sidebar.getAttribute('storageKey')).toBe(
'live-channels-sidebar-width'
);
});

it('keeps row previews empty before bulk epg is loaded', async () => {
fixture.detectChanges();
await fixture.whenStable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[minWidth]="250"
[maxWidth]="600"
[defaultWidth]="400"
storageKey="sidebar-width"
storageKey="live-channels-sidebar-width"
>
<div class="sidebar-header">
<div class="category-heading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,21 @@ describe('LiveStreamLayoutComponent', () => {
).toBeNull();
});

it('persists the channels sidebar width under a dedicated storage key', () => {
// The shell context panel (category sidebar) is visible at the same
// time as this sidebar and persists its width under the shared
// "sidebar-width" key. Reusing that key here makes the two panels
// overwrite each other's stored width across reloads.
selectedCategoryId.set(1);
fixture.detectChanges();

const sidebar: HTMLElement =
fixture.nativeElement.querySelector('.sidebar');
expect(sidebar.getAttribute('storageKey')).toBe(
'live-channels-sidebar-width'
);
});

describe('auto-open from Ctrl+F search navigation state', () => {
const searchChannel = {
xtream_id: 202,
Expand Down
Loading