fixed a typo in one of the components

This commit is contained in:
Jonas Winkler 2020-11-23 23:39:42 +01:00
parent f4013b1343
commit cd6e7d9563
6 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@ import { TagEditDialogComponent } from './components/manage/tag-list/tag-edit-di
import { DocumentTypeEditDialogComponent } from './components/manage/document-type-list/document-type-edit-dialog/document-type-edit-dialog.component'; import { DocumentTypeEditDialogComponent } from './components/manage/document-type-list/document-type-edit-dialog/document-type-edit-dialog.component';
import { TagComponent } from './components/common/tag/tag.component'; import { TagComponent } from './components/common/tag/tag.component';
import { SearchComponent } from './components/search/search.component'; import { SearchComponent } from './components/search/search.component';
import { ResultHightlightComponent } from './components/search/result-hightlight/result-hightlight.component'; import { ResultHighlightComponent } from './components/search/result-highlight/result-highlight.component';
import { PageHeaderComponent } from './components/common/page-header/page-header.component'; import { PageHeaderComponent } from './components/common/page-header/page-header.component';
import { AppFrameComponent } from './components/app-frame/app-frame.component'; import { AppFrameComponent } from './components/app-frame/app-frame.component';
import { ToastsComponent } from './components/common/toasts/toasts.component'; import { ToastsComponent } from './components/common/toasts/toasts.component';
@ -65,7 +65,7 @@ import { WidgetFrameComponent } from './components/dashboard/widgets/widget-fram
DocumentTypeEditDialogComponent, DocumentTypeEditDialogComponent,
TagComponent, TagComponent,
SearchComponent, SearchComponent,
ResultHightlightComponent, ResultHighlightComponent,
PageHeaderComponent, PageHeaderComponent,
AppFrameComponent, AppFrameComponent,
ToastsComponent, ToastsComponent,

View File

@ -11,7 +11,7 @@
<h5 class="card-title" *ngIf="document.archive_serial_number">#{{document.archive_serial_number}}</h5> <h5 class="card-title" *ngIf="document.archive_serial_number">#{{document.archive_serial_number}}</h5>
</div> </div>
<p class="card-text"> <p class="card-text">
<app-result-hightlight *ngIf="getDetailsAsHighlight()" class="result-content" [highlights]="getDetailsAsHighlight()"></app-result-hightlight> <app-result-highlight *ngIf="getDetailsAsHighlight()" class="result-content" [highlights]="getDetailsAsHighlight()"></app-result-highlight>
<span *ngIf="getDetailsAsString()" class="result-content">{{getDetailsAsString()}}</span> <span *ngIf="getDetailsAsString()" class="result-content">{{getDetailsAsString()}}</span>
</p> </p>

View File

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

View File

@ -2,11 +2,11 @@ import { Component, Input, OnInit } from '@angular/core';
import { SearchHitHighlight } from 'src/app/data/search-result'; import { SearchHitHighlight } from 'src/app/data/search-result';
@Component({ @Component({
selector: 'app-result-hightlight', selector: 'app-result-highlight',
templateUrl: './result-hightlight.component.html', templateUrl: './result-highlight.component.html',
styleUrls: ['./result-hightlight.component.scss'] styleUrls: ['./result-highlight.component.scss']
}) })
export class ResultHightlightComponent implements OnInit { export class ResultHighlightComponent implements OnInit {
constructor() { } constructor() { }