feat(doc): Unterstützung für benutzerdefinierte Dokumentattribute hinzufügen
This commit is contained in:
parent
8d7615fb37
commit
d5d82a5a1e
@ -22,6 +22,11 @@ const validExtensions: FileFormat[] = [
|
||||
'png', 'svg', 'zip', 'md'
|
||||
];
|
||||
|
||||
type DocAttribute = {
|
||||
name: string;
|
||||
serilizedValue: string;
|
||||
}
|
||||
|
||||
export class Doc {
|
||||
|
||||
static map(source?: Partial<Doc>): Doc {
|
||||
@ -37,6 +42,7 @@ export class Doc {
|
||||
addedWho!: string;
|
||||
changedWhen?: Date;
|
||||
changedWho?: string;
|
||||
attributes: Array<DocAttribute> = [];
|
||||
|
||||
getChangedInfo(separator: string = " | "): string | null {
|
||||
const who = this.changedWho?.trim();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user