renames document-asn component

This commit is contained in:
Tobi 2021-03-30 19:26:20 +02:00
parent 434194d290
commit 1ec4570c8d
6 changed files with 12 additions and 12 deletions

View File

@ -11,7 +11,7 @@ import { SettingsComponent } from './components/manage/settings/settings.compone
import { TagListComponent } from './components/manage/tag-list/tag-list.component';
import { NotFoundComponent } from './components/not-found/not-found.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 = [
{path: '', redirectTo: 'dashboard', pathMatch: 'full'},
@ -21,7 +21,7 @@ const routes: Routes = [
{path: 'view/:id', component: DocumentListComponent },
{path: 'search', component: SearchComponent },
{path: 'documents/:id', component: DocumentDetailComponent },
{path: 'asn/:id', component: DocumentASNComponentComponent },
{path: 'asn/:id', component: DocumentAsnComponent },
{path: 'tags', component: TagListComponent },
{path: 'documenttypes', component: DocumentTypeListComponent },

View File

@ -75,7 +75,7 @@ import localeEnGb from '@angular/common/locales/en-GB';
import localeRo from '@angular/common/locales/ro';
import localeRu from '@angular/common/locales/ru';
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)
@ -140,7 +140,7 @@ registerLocaleData(localeEs)
CustomDatePipe,
DateComponent,
ColorComponent,
DocumentASNComponentComponent
DocumentAsnComponent
],
imports: [
BrowserModule,

View File

@ -1,20 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DocumentASNComponentComponent } from './document-asncomponent.component';
import { DocumentAsnComponent } from './document-asn.component';
describe('DocumentASNComponentComponent', () => {
let component: DocumentASNComponentComponent;
let fixture: ComponentFixture<DocumentASNComponentComponent>;
let component: DocumentAsnComponent;
let fixture: ComponentFixture<DocumentAsnComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ DocumentASNComponentComponent ]
declarations: [ DocumentAsnComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(DocumentASNComponentComponent);
fixture = TestBed.createComponent(DocumentAsnComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

View File

@ -7,10 +7,10 @@ import {FILTER_ASN} from "../../data/filter-rule-type";
@Component({
selector: 'app-document-asncomponent',
templateUrl: './document-asncomponent.component.html',
styleUrls: ['./document-asncomponent.component.scss']
templateUrl: './document-asn.component.html',
styleUrls: ['./document-asn.component.scss']
})
export class DocumentASNComponentComponent implements OnInit {
export class DocumentAsnComponent implements OnInit {
asn: string;
constructor(