src/app/features/change-history/display-audit-record/display-audit-record.component.ts

Description

The record one audited change was made to: its name, with the raw id quietly underneath.

The id is shown because a change log row is often the only place a deleted record still appears, where there is no details view left to look it up in - and because it is what the related-record filter takes.

Extends

ViewDirective<string>

Example

Metadata

Relationships

Used by

No results matching.

Index

Properties
Inputs

Inputs

config
Type : C
Default value : undefined
Inherited from ViewDirective
entity
Type : Entity
Inherited from ViewDirective
formFieldConfig
Type : FormFieldConfig
Inherited from ViewDirective
id
Type : string
Inherited from ViewDirective
tooltip
Type : string
Inherited from ViewDirective
value
Type : T
Inherited from ViewDirective

Properties

Readonly config
Type : unknown
Default value : computed<C>(() => { const ffc = this.formFieldConfig(); return ffc !== undefined ? (ffc.additional as C) : this._directConfig(); })
Inherited from ViewDirective
Readonly isPartiallyAnonymized
Type : unknown
Default value : computed<boolean>(() => { const entity = this.entity(); const id = this.id(); return ( (entity?.anonymized && entity?.getSchema()?.get(id)?.anonymize === "retain-anonymized") ?? false ); })
Inherited from ViewDirective
import { Component } from "@angular/core";
import { ViewDirective } from "../../../core/entity/default-datatype/view.directive";
import { DynamicComponent } from "../../../core/config/dynamic-components/dynamic-component.decorator";
import { EntityBlockComponent } from "../../../core/basic-datatypes/entity/entity-block/entity-block.component";
import { RecordIdDisplayComponent } from "../../../core/common-components/record-id-display/record-id-display.component";

/**
 * The record one audited change was made to: its name, with the raw id quietly
 * underneath.
 *
 * The id is shown because a change log row is often the only place a deleted
 * record still appears, where there is no details view left to look it up in -
 * and because it is what the related-record filter takes.
 */
@DynamicComponent("DisplayAuditRecord")
@Component({
  selector: "app-display-audit-record",
  imports: [EntityBlockComponent, RecordIdDisplayComponent],
  template: `
    @if (value()) {
      <div class="flex-column">
        <app-entity-block [entityId]="value()"></app-entity-block>
        <app-record-id-display [recordId]="value()"></app-record-id-display>
      </div>
    } @else {
      <span>-</span>
    }
  `,
})
export class DisplayAuditRecordComponent extends ViewDirective<string> {}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""