mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	renames document-asn component
This commit is contained in:
		| @@ -11,7 +11,7 @@ import { SettingsComponent } from './components/manage/settings/settings.compone | |||||||
| import { TagListComponent } from './components/manage/tag-list/tag-list.component'; | import { TagListComponent } from './components/manage/tag-list/tag-list.component'; | ||||||
| import { NotFoundComponent } from './components/not-found/not-found.component'; | import { NotFoundComponent } from './components/not-found/not-found.component'; | ||||||
| import { SearchComponent } from './components/search/search.component'; | import { SearchComponent } from './components/search/search.component'; | ||||||
| import {DocumentASNComponentComponent} from "./components/document-asncomponent/document-asncomponent.component"; | import {DocumentAsnComponent} from "./components/document-asn/document-asn.component"; | ||||||
|  |  | ||||||
| const routes: Routes = [ | const routes: Routes = [ | ||||||
|   {path: '', redirectTo: 'dashboard', pathMatch: 'full'}, |   {path: '', redirectTo: 'dashboard', pathMatch: 'full'}, | ||||||
| @@ -21,7 +21,7 @@ const routes: Routes = [ | |||||||
|     {path: 'view/:id', component: DocumentListComponent }, |     {path: 'view/:id', component: DocumentListComponent }, | ||||||
|     {path: 'search', component: SearchComponent }, |     {path: 'search', component: SearchComponent }, | ||||||
|     {path: 'documents/:id', component: DocumentDetailComponent }, |     {path: 'documents/:id', component: DocumentDetailComponent }, | ||||||
|       {path: 'asn/:id', component: DocumentASNComponentComponent }, |       {path: 'asn/:id', component: DocumentAsnComponent }, | ||||||
|  |  | ||||||
|     {path: 'tags', component: TagListComponent }, |     {path: 'tags', component: TagListComponent }, | ||||||
|     {path: 'documenttypes', component: DocumentTypeListComponent }, |     {path: 'documenttypes', component: DocumentTypeListComponent }, | ||||||
|   | |||||||
| @@ -75,7 +75,7 @@ import localeEnGb from '@angular/common/locales/en-GB'; | |||||||
| import localeRo from '@angular/common/locales/ro'; | import localeRo from '@angular/common/locales/ro'; | ||||||
| import localeRu from '@angular/common/locales/ru'; | import localeRu from '@angular/common/locales/ru'; | ||||||
| import localeEs from '@angular/common/locales/es'; | import localeEs from '@angular/common/locales/es'; | ||||||
| import { DocumentASNComponentComponent } from './components/document-asncomponent/document-asncomponent.component'; | import { DocumentAsnComponent } from './components/document-asn/document-asn.component'; | ||||||
|  |  | ||||||
|  |  | ||||||
| registerLocaleData(localeFr) | registerLocaleData(localeFr) | ||||||
| @@ -140,7 +140,7 @@ registerLocaleData(localeEs) | |||||||
|     CustomDatePipe, |     CustomDatePipe, | ||||||
|     DateComponent, |     DateComponent, | ||||||
|     ColorComponent, |     ColorComponent, | ||||||
|     DocumentASNComponentComponent |     DocumentAsnComponent | ||||||
|   ], |   ], | ||||||
|   imports: [ |   imports: [ | ||||||
|     BrowserModule, |     BrowserModule, | ||||||
|   | |||||||
| @@ -1,20 +1,20 @@ | |||||||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||||||
| 
 | 
 | ||||||
| import { DocumentASNComponentComponent } from './document-asncomponent.component'; | import { DocumentAsnComponent } from './document-asn.component'; | ||||||
| 
 | 
 | ||||||
| describe('DocumentASNComponentComponent', () => { | describe('DocumentASNComponentComponent', () => { | ||||||
|   let component: DocumentASNComponentComponent; |   let component: DocumentAsnComponent; | ||||||
|   let fixture: ComponentFixture<DocumentASNComponentComponent>; |   let fixture: ComponentFixture<DocumentAsnComponent>; | ||||||
| 
 | 
 | ||||||
|   beforeEach(async () => { |   beforeEach(async () => { | ||||||
|     await TestBed.configureTestingModule({ |     await TestBed.configureTestingModule({ | ||||||
|       declarations: [ DocumentASNComponentComponent ] |       declarations: [ DocumentAsnComponent ] | ||||||
|     }) |     }) | ||||||
|     .compileComponents(); |     .compileComponents(); | ||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|   beforeEach(() => { |   beforeEach(() => { | ||||||
|     fixture = TestBed.createComponent(DocumentASNComponentComponent); |     fixture = TestBed.createComponent(DocumentAsnComponent); | ||||||
|     component = fixture.componentInstance; |     component = fixture.componentInstance; | ||||||
|     fixture.detectChanges(); |     fixture.detectChanges(); | ||||||
|   }); |   }); | ||||||
| @@ -7,10 +7,10 @@ import {FILTER_ASN} from "../../data/filter-rule-type"; | |||||||
| 
 | 
 | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-document-asncomponent', |   selector: 'app-document-asncomponent', | ||||||
|   templateUrl: './document-asncomponent.component.html', |   templateUrl: './document-asn.component.html', | ||||||
|   styleUrls: ['./document-asncomponent.component.scss'] |   styleUrls: ['./document-asn.component.scss'] | ||||||
| }) | }) | ||||||
| export class DocumentASNComponentComponent implements OnInit { | export class DocumentAsnComponent implements OnInit { | ||||||
| 
 | 
 | ||||||
|   asn: string; |   asn: string; | ||||||
|   constructor( |   constructor( | ||||||
		Reference in New Issue
	
	Block a user
	 Tobi
					Tobi