Skip to content

Commit

Permalink
fix the can´t bind ngFor and ngIf
Browse files Browse the repository at this point in the history
  • Loading branch information
the-last-pastafarian committed Jan 15, 2025
1 parent b41ea4a commit 9596856
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions desktop/src/app/components/docedit/docedit.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import { MultiLanguageTextFieldComponent } from './core/forms/widgets/multi-lang
import { SimpleInputComponent } from './core/forms/simple-input.component';
import { SimpleMultiInputComponent } from './core/forms/simple-multi-input.component';
import { IdentifierComponent } from './core/forms/identifier.component';
import { ChangesHistoryModalComponent } from '../widgets/changes-history-modal.component';
import { CompositeComponent } from './core/forms/array-field/composite/composite.component';
import { CompositeEntryModalComponent } from './core/forms/array-field/composite/composite-entry-modal.component';
import { ValuelistMultiInputComponent } from './core/forms/valuelist-multi-input.component';
Expand Down Expand Up @@ -114,8 +113,7 @@ import { LiteratureEntryModalComponent } from './core/forms/array-field/literatu
InvalidFieldDataComponent,
MultiLanguageTextFieldComponent,
CompositeComponent,
CompositeEntryModalComponent,
ChangesHistoryModalComponent
CompositeEntryModalComponent
],
exports: [
DoceditComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Component} from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { Document } from 'idai-field-core';

import { CommonModule } from '@angular/common';

@Component({
selector: 'changes-history-modal',
imports: [CommonModule],
templateUrl: './changes-history-modal.html',
styleUrls: ['./changes-history-modal.scss']
})
Expand All @@ -31,9 +32,8 @@ export class ChangesHistoryModalComponent {
}

public async initialize() {
// this.category = this.projectConfiguration.getCategory(this.document.resource.category);
// this.printedFields = await this.getPrintedFields();
1
// TODO remove this function ( called in private function initModal() )
1
}

public formatDateTime( date: string | Date, locale: string = 'de-DE' ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ <h5 class="modal-title" i18n="@@widgets.historyModal.header">Änderunghistorie<
<div class="modal-body">
<h6>The resource <b>{{document.resource.identifier}}</b> has been created by the user {{document.created.user}} the {{formatDateTime(document.created.date)}}</h6>
<div id="changes-history-modal-body" class="modal-body">
<!-- {{document.modified[0].date}} -->
<div *ngIf="document.modified">
<div *ngIf="document.modified[0].user">
<div id="list">
<div id="list-header">
<div class="list-header-field" i18n="@@changes.list.colnames.date">Änderungsdatum</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.list-body{
max-height: 70vh;
max-height: 66vh;
overflow: auto;
}

Expand Down

0 comments on commit 9596856

Please sign in to comment.