reverted type-id

This commit is contained in:
Timo Bejan 2021-09-29 20:01:56 +03:00
parent 814afb3eaa
commit 6562b362a8
4 changed files with 5 additions and 11 deletions

View File

@ -13,12 +13,7 @@ export class AnnotationData {
}
export class FileDataModel {
constructor(
public file: File,
public fileData: Blob,
public redactionLog: RedactionLog,
public viewedPages?: ViewedPages
) {}
constructor(public file: File, public fileData: Blob, public redactionLog: RedactionLog, public viewedPages?: ViewedPages) {}
getAnnotations(
dictionaryData: { [p: string]: TypeValue },
@ -59,8 +54,7 @@ export class FileDataModel {
// copy the redactionLog Entry
const redactionLogEntryWrapper: RedactionLogEntryWrapper = {};
Object.assign(redactionLogEntryWrapper, redactionLogEntry);
console.log(redactionLogEntry.typeId);
redactionLogEntryWrapper.type = redactionLogEntry.typeId.substr(0, redactionLogEntry.typeId.indexOf(":"));
redactionLogEntryWrapper.type = redactionLogEntry.type;
redactionLogEntryWrapper.isChangeLogEntry = this._isChangeLogEntry(redactionLogEntry);
// redactionLogEntryWrapper.changeLogType = changeLogEntry.changeType;

View File

@ -11,6 +11,6 @@ export class ManualAnnotationResponse {
}
get dictionary() {
return this.manualRedactionEntryWrapper.manualRedactionEntry.typeId;
return this.manualRedactionEntryWrapper.manualRedactionEntry.type;
}
}

View File

@ -23,7 +23,7 @@ export interface ManualRedactionEntry {
requestDate?: string;
softDeletedTime?: string;
status?: ManualRedactionEntry.StatusEnum;
typeId?: string;
type?: string;
user?: string;
value?: string;
}

View File

@ -44,7 +44,7 @@ export interface RedactionLogEntry {
status?: RedactionLogEntry.StatusEnum;
textAfter?: string;
textBefore?: string;
typeId?: string;
type?: string;
value?: string;
}