Skip to main content

CnAuditTrailWidget

The audit-trail widget: a CnAuditTrailCard that finds its object by itself. The card needs register, schema and objectId; the detail render paths supply the current object in different ways, so the widget reads whichever is present: explicit props first, then the injected object context, then content.

The widget registers itself as the audit-trail type (a detail-page widget), so a manifest places it by that key. It is also a named export:

import { CnAuditTrailWidget } from '@conduction/nextcloud-vue'

Props​

PropTypeDefaultDescription
registerstring''OpenRegister register slug or id.
schemastring | object''The schema slug, or the schema object (its slug, name or id is used).
objectIdstring''The audited object's id.
titlestring''Card title override. Defaults to the card's translated label.
maxDisplaynumber0Most audit rows shown. 0 uses the card default.
scopestring''object (default) is one object's trail. app lists the app-wide feed, narrowed to register / schema when set, and needs no object. Also read from content.scope.
contentobject{}The stored widget content: { title, maxDisplay, scope?, register?, schema?, objectId? }.

Reference (auto-generated)​

OpenRegister reliance​

medium: this component relies on OpenRegister for part of what it does. 0 direct references, 7 files reached through imports.

Through: CnAuditTrailCard.

See the reliance overview for the filterable list.

Props​

NameTypeRequiredDefaultDescription
registerstring''OpenRegister register slug/id — object context spread as props by CnWidgetGrid (slot path).
schemaunion''OpenRegister schema — a slug string, or the schema OBJECT the detail-context merge supplies (its slug/name/id is used).
objectIdstring''The audited object's id — object context spread as props by CnWidgetGrid (slot path).
titlestring''Optional card title override (defaults to the card's translated label).
maxDisplaynumber0Maximum audit rows to render (0 falls back to the card default).
scopestring''app lists the app-wide feed (every object the caller may read, narrowed to register / schema when set) and needs no object; object (the default) is one object's trail. Also read from content.scope.
contentobject\{\}Stored widget content blob (CnDashboardPage registry branch): { title, maxDisplay, register?, schema?, objectId? }.