Allow enable/disable update checking (and release notes) in the dialog

This commit is contained in:
shamoon committed 2026-11-18 14:20:10 -08:00
1 parent b1cb8a8365
commit e81ac3799b
5 files changed
+111 -12

No files matched your search

@@ -741,6 +741,19 @@ describe('AppFrameComponent', () => {
httpTestingController.expectNone(`${environment.apiBaseUrl}ui_settings/`)
})
it('should save update checking chosen in the release notes dialog', () => {
const setUpdateCheckingSpy = jest
.spyOn(component, 'setUpdateChecking')
.mockImplementation(() => {})
const modalSpy = jest.spyOn(modalService, 'open')
component.showReleaseNotes()
const dialog = modalSpy.mock.results[0].value
.componentInstance as ReleaseNotesDialogComponent
dialog.updateCheckingChosen.emit(true)
expect(setUpdateCheckingSpy).toHaveBeenCalledWith(true)
})
it('should show new release dot instead of documentation in slim sidebar', () => {
settingsService.set(SETTINGS_KEYS.SLIM_SIDEBAR, true)
settingsService.set(SETTINGS_KEYS.VERSION, '3.5.1')