diff --git a/frontend/domain/models/project/project.ts b/frontend/domain/models/project/project.ts index 52a0bfbe..5d1acd2b 100644 --- a/frontend/domain/models/project/project.ts +++ b/frontend/domain/models/project/project.ts @@ -27,10 +27,10 @@ export class Project { readonly guideline: string, readonly projectType: ProjectType, readonly randomOrder: boolean, - readonly collaborativeAnnotation: boolean, + readonly enableSharingMode: boolean, readonly exclusiveCategories: boolean, - readonly allowOverlapping: boolean, - readonly graphemeMode: boolean, + readonly allowOverlappingSpans: boolean, + readonly enableGraphemeMode: boolean, readonly useRelation: boolean, readonly tags: Object[], readonly users: number[] = [], diff --git a/frontend/repositories/project/apiProjectRepository.ts b/frontend/repositories/project/apiProjectRepository.ts index 23781efc..3e526f81 100644 --- a/frontend/repositories/project/apiProjectRepository.ts +++ b/frontend/repositories/project/apiProjectRepository.ts @@ -33,10 +33,10 @@ function toPayload(item: Project): { [key: string]: any } { guideline: item.guideline, project_type: item.projectType, random_order: item.randomOrder, - collaborative_annotation: item.collaborativeAnnotation, + collaborative_annotation: item.enableSharingMode, single_class_classification: item.exclusiveCategories, - allow_overlapping: item.allowOverlapping, - grapheme_mode: item.graphemeMode, + allow_overlapping: item.allowOverlappingSpans, + grapheme_mode: item.enableGraphemeMode, use_relation: item.useRelation, tags: item.tags, resourcetype: item.resourceType diff --git a/frontend/services/application/project/projectData.ts b/frontend/services/application/project/projectData.ts index ecdaefdf..485d19f3 100644 --- a/frontend/services/application/project/projectData.ts +++ b/frontend/services/application/project/projectData.ts @@ -35,15 +35,15 @@ export class ProjectDTO { this.updatedAt = item.updatedAt this.author = item.author this.enableRandomOrder = item.randomOrder - this.enableShareAnnotation = item.collaborativeAnnotation + this.enableShareAnnotation = item.enableSharingMode this.singleClassClassification = item.exclusiveCategories this.tags = item.tags this.canDefineLabel = item.canDefineLabel this.canDefineRelation = item.canDefineRelation this.canDefineCategory = item.canDefineCategory this.isTextProject = item.isTextProject - this.allowOverlapping = item.allowOverlapping - this.graphemeMode = item.graphemeMode + this.allowOverlapping = item.allowOverlappingSpans + this.graphemeMode = item.enableGraphemeMode this.hasCategory = item.canDefineCategory this.hasSpan = item.canDefineSpan this.taskNames = item.taskNames