mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 12:36:53 +00:00
Chore: ditch the abandoned ngx-bootstrap-icons, roll our own (#14665)
This commit is contained in:
1 parent
786eac0b22
commit
7cdf8ec3c2
249 files changed
+1092
-1216
No files matched your search
+3
-3
@@ -9,12 +9,12 @@
|
||||
@if (getStatusCompleted().length > 0) {
|
||||
<a class="btn-link small text-nowrap" (click)="dismissCompleted()" [routerLink]="[]">
|
||||
<span class="me-1" i18n="This button dismisses all status messages about processed documents in the tray (failed and successful)">Dismiss completed</span>
|
||||
<i-bs name="check2-all"></i-bs>
|
||||
<pngx-bs-icon name="check2-all"></pngx-bs-icon>
|
||||
</a>
|
||||
}
|
||||
<button type="button" class="btn btn-sm btn-link p-0 text-muted" (click)="toggleCollapsed()"
|
||||
[attr.aria-expanded]="!collapsed()" aria-label="Toggle document processing status" i18n-aria-label>
|
||||
<i-bs [name]="collapsed() ? 'chevron-up' : 'chevron-down'"></i-bs>
|
||||
<pngx-bs-icon [name]="collapsed() ? 'chevron-up' : 'chevron-down'"></pngx-bs-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@
|
||||
@if (status.documentId) {
|
||||
<a class="btn btn-sm btn-outline-primary btn-open" [routerLink]="['/documents', status.documentId]" (click)="dismiss(status)">
|
||||
<small i18n>Open document</small>
|
||||
<i-bs name="arrow-right-short"></i-bs>
|
||||
<pngx-bs-icon name="arrow-right-short"></pngx-bs-icon>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
:host ::ng-deep i-bs svg {
|
||||
:host ::ng-deep pngx-bs-icon svg {
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
.btn-open {
|
||||
line-height: 1;
|
||||
|
||||
i-bs {
|
||||
pngx-bs-icon {
|
||||
margin-top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -2,7 +2,6 @@ import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing'
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
||||
import { RouterTestingModule } from '@angular/router/testing'
|
||||
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
|
||||
import { routes } from 'src/app/app-routing.module'
|
||||
import { PermissionsGuard } from 'src/app/guards/permissions.guard'
|
||||
import { PermissionsService } from 'src/app/services/permissions.service'
|
||||
@@ -41,7 +40,6 @@ describe('UploadStatusTrayComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
RouterTestingModule.withRoutes(routes),
|
||||
NgxBootstrapIconsModule.pick(allIcons),
|
||||
UploadStatusTrayComponent,
|
||||
],
|
||||
providers: [
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
NgbAlertModule,
|
||||
NgbProgressbarModule,
|
||||
} from '@ng-bootstrap/ng-bootstrap'
|
||||
import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
|
||||
import { BootstrapIconComponent } from 'src/app/components/common/bootstrap-icon/bootstrap-icon.component'
|
||||
import { ComponentWithPermissions } from 'src/app/components/with-permissions/with-permissions.component'
|
||||
import { SETTINGS_KEYS } from 'src/app/data/ui-settings'
|
||||
import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
RouterModule,
|
||||
NgbAlertModule,
|
||||
NgbProgressbarModule,
|
||||
NgxBootstrapIconsModule,
|
||||
BootstrapIconComponent,
|
||||
],
|
||||
})
|
||||
export class UploadStatusTrayComponent extends ComponentWithPermissions {
|
||||
|
||||
Reference in new issue
Block a user