Fix template list component typo, accidentally-committed files
This commit is contained in:
parent
b73878a52f
commit
45d0dc64f2
@ -21,7 +21,7 @@ import {
|
||||
PermissionAction,
|
||||
PermissionType,
|
||||
} from './services/permissions.service'
|
||||
import { ConsmptionTemplatesListComponent } from './components/manage/consmption-templates-list/consmption-templates-list.component'
|
||||
import { ConsumptionTemplatesListComponent } from './components/manage/consumption-templates-list/consumption-templates-list.component'
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
||||
@ -185,7 +185,7 @@ export const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: 'templates',
|
||||
component: ConsmptionTemplatesListComponent,
|
||||
component: ConsumptionTemplatesListComponent,
|
||||
canActivate: [PermissionsGuard],
|
||||
data: {
|
||||
requiredPermission: {
|
||||
|
@ -95,7 +95,7 @@ import { UsernamePipe } from './pipes/username.pipe'
|
||||
import { LogoComponent } from './components/common/logo/logo.component'
|
||||
import { IsNumberPipe } from './pipes/is-number.pipe'
|
||||
import { ShareLinksDropdownComponent } from './components/common/share-links-dropdown/share-links-dropdown.component'
|
||||
import { ConsmptionTemplatesListComponent } from './components/manage/consmption-templates-list/consmption-templates-list.component'
|
||||
import { ConsumptionTemplatesListComponent } from './components/manage/consumption-templates-list/consumption-templates-list.component'
|
||||
import { ConsumptionTemplateEditDialogComponent } from './components/common/edit-dialog/consumption-template-edit-dialog/consumption-template-edit-dialog.component'
|
||||
|
||||
import localeAf from '@angular/common/locales/af'
|
||||
@ -235,7 +235,7 @@ function initializeApp(settings: SettingsService) {
|
||||
LogoComponent,
|
||||
IsNumberPipe,
|
||||
ShareLinksDropdownComponent,
|
||||
ConsmptionTemplatesListComponent,
|
||||
ConsumptionTemplatesListComponent,
|
||||
ConsumptionTemplateEditDialogComponent,
|
||||
],
|
||||
imports: [
|
||||
|
@ -1 +0,0 @@
|
||||
<p>consmption-templates works!</p>
|
@ -1,21 +0,0 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
||||
|
||||
import { ConsmptionTemplatesComponent } from './consmption-templates.component'
|
||||
|
||||
describe('ConsmptionTemplatesComponent', () => {
|
||||
let component: ConsmptionTemplatesComponent
|
||||
let fixture: ComponentFixture<ConsmptionTemplatesComponent>
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ConsmptionTemplatesComponent],
|
||||
})
|
||||
fixture = TestBed.createComponent(ConsmptionTemplatesComponent)
|
||||
component = fixture.componentInstance
|
||||
fixture.detectChanges()
|
||||
})
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy()
|
||||
})
|
||||
})
|
@ -1,8 +0,0 @@
|
||||
import { Component } from '@angular/core'
|
||||
|
||||
@Component({
|
||||
selector: 'pngx-consmption-templates',
|
||||
templateUrl: './consmption-templates.component.html',
|
||||
styleUrls: ['./consmption-templates.component.scss'],
|
||||
})
|
||||
export class ConsmptionTemplatesComponent {}
|
@ -18,7 +18,7 @@ import { ConsumptionTemplateService } from 'src/app/services/rest/consumption-te
|
||||
import { ToastService } from 'src/app/services/toast.service'
|
||||
import { ConfirmDialogComponent } from '../../common/confirm-dialog/confirm-dialog.component'
|
||||
import { PageHeaderComponent } from '../../common/page-header/page-header.component'
|
||||
import { ConsmptionTemplatesListComponent } from './consmption-templates-list.component'
|
||||
import { ConsumptionTemplatesListComponent } from './consumption-templates-list.component'
|
||||
import { ConsumptionTemplateEditDialogComponent } from '../../common/edit-dialog/consumption-template-edit-dialog/consumption-template-edit-dialog.component'
|
||||
import { PermissionsService } from 'src/app/services/permissions.service'
|
||||
|
||||
@ -47,9 +47,9 @@ const templates: PaperlessConsumptionTemplate[] = [
|
||||
},
|
||||
]
|
||||
|
||||
describe('ConsmptionTemplatesComponent', () => {
|
||||
let component: ConsmptionTemplatesListComponent
|
||||
let fixture: ComponentFixture<ConsmptionTemplatesListComponent>
|
||||
describe('ConsumptionTemplatesComponent', () => {
|
||||
let component: ConsumptionTemplatesListComponent
|
||||
let fixture: ComponentFixture<ConsumptionTemplatesListComponent>
|
||||
let consumptionTemplateService: ConsumptionTemplateService
|
||||
let modalService: NgbModal
|
||||
let toastService: ToastService
|
||||
@ -57,7 +57,7 @@ describe('ConsmptionTemplatesComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [
|
||||
ConsmptionTemplatesListComponent,
|
||||
ConsumptionTemplatesListComponent,
|
||||
IfPermissionsDirective,
|
||||
PageHeaderComponent,
|
||||
ConfirmDialogComponent,
|
||||
@ -92,7 +92,7 @@ describe('ConsmptionTemplatesComponent', () => {
|
||||
modalService = TestBed.inject(NgbModal)
|
||||
toastService = TestBed.inject(ToastService)
|
||||
|
||||
fixture = TestBed.createComponent(ConsmptionTemplatesListComponent)
|
||||
fixture = TestBed.createComponent(ConsumptionTemplatesListComponent)
|
||||
component = fixture.componentInstance
|
||||
fixture.detectChanges()
|
||||
})
|
@ -14,11 +14,11 @@ import { ConfirmDialogComponent } from '../../common/confirm-dialog/confirm-dial
|
||||
import { EditDialogMode } from '../../common/edit-dialog/edit-dialog.component'
|
||||
|
||||
@Component({
|
||||
selector: 'pngx-consmption-templates-list',
|
||||
templateUrl: './consmption-templates-list.component.html',
|
||||
styleUrls: ['./consmption-templates-list.component.scss'],
|
||||
selector: 'pngx-consumption-templates-list',
|
||||
templateUrl: './consumption-templates-list.component.html',
|
||||
styleUrls: ['./consumption-templates-list.component.scss'],
|
||||
})
|
||||
export class ConsmptionTemplatesListComponent
|
||||
export class ConsumptionTemplatesListComponent
|
||||
extends ComponentWithPermissions
|
||||
implements OnInit
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user