mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 04:26:53 +00:00
Swap whats new for docs in slim sidebar
This commit is contained in:
2 files changed
+11
-6
No files matched your search
@@ -361,7 +361,8 @@
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
<li class="nav-item mt-2 position-relative" [class.d-none]="settingsService.sidebarItemIsHidden(HideableSidebarItemID.Documentation) && !settingsService.organizingSidebarItems()" tourAnchor="tour.outro">
|
||||
<li class="nav-item mt-2 position-relative" [class.d-none]="settingsService.sidebarItemIsHidden(HideableSidebarItemID.Documentation) && !settingsService.organizingSidebarItems()"
|
||||
[class.d-md-none]="slimSidebarEnabled && settingsService.unseenReleasesSince()" tourAnchor="tour.outro">
|
||||
<a class="text-muted small d-flex align-items-center flex-wrap text-decoration-none nav-anchor" [class.opacity-50]="settingsService.sidebarItemIsHidden(HideableSidebarItemID.Documentation)" [class.pe-5]="settingsService.organizingSidebarItems() && !slimSidebarEnabled && !slimSidebarAnimating()"
|
||||
target="_blank" rel="noopener noreferrer" href="https://docs.paperless-ngx.com" ngbPopover="Documentation"
|
||||
i18n-ngbPopover [disablePopover]="!slimSidebarPopoversEnabled" placement="end" container="body"
|
||||
@@ -373,13 +374,13 @@
|
||||
}
|
||||
</li>
|
||||
@if (slimSidebarEnabled && settingsService.unseenReleasesSince()) {
|
||||
<li class="nav-item d-none d-md-block">
|
||||
<button type="button" class="nav-link btn btn-link position-relative" (click)="showReleaseNotes()"
|
||||
<li class="nav-item mt-2 d-none d-md-block">
|
||||
<button type="button" class="btn btn-link border-0 w-100 text-muted small d-flex align-items-center nav-anchor position-relative" (click)="showReleaseNotes()"
|
||||
aria-label="See what's new in this version" i18n-aria-label
|
||||
ngbPopover="What's new" i18n-ngbPopover placement="end" container="body"
|
||||
triggers="mouseenter:mouseleave" popoverClass="popover-slim">
|
||||
<pngx-bs-icon name="info-circle"></pngx-bs-icon>
|
||||
<span class="position-absolute top-0 end-0 mt-2 me-2 p-1 bg-success rounded-circle"><span class="visually-hidden" i18n>New</span></span>
|
||||
<pngx-bs-icon class="d-flex" name="info-circle"></pngx-bs-icon>
|
||||
<div class="position-absolute top-0 start-50 ms-1 p-1 bg-success rounded-circle"></div>
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
|
||||
@@ -722,7 +722,7 @@ describe('AppFrameComponent', () => {
|
||||
).toBeUndefined()
|
||||
})
|
||||
|
||||
it('should show new release dot in slim sidebar', () => {
|
||||
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')
|
||||
settingsService.set(SETTINGS_KEYS.WHATS_NEW_LAST_SEEN_VERSION, '3.4.2')
|
||||
@@ -733,6 +733,10 @@ describe('AppFrameComponent', () => {
|
||||
By.css('button[aria-label="See what\'s new in this version"]')
|
||||
)
|
||||
).toBeTruthy()
|
||||
const docsItem = fixture.debugElement
|
||||
.query(By.css('a[href="https://docs.paperless-ngx.com"].nav-anchor'))
|
||||
.nativeElement.closest('li')
|
||||
expect(docsItem.classList).toContain('d-md-none')
|
||||
})
|
||||
|
||||
it('should show tasks badge for needs-attention tasks', () => {
|
||||
|
||||
Reference in new issue
Block a user