Browse Source

Rename project fields

pull/2093/head
Hironsan 2 years ago
parent
commit
1a09d13f01
3 changed files with 9 additions and 9 deletions
  1. 6
      frontend/domain/models/project/project.ts
  2. 6
      frontend/repositories/project/apiProjectRepository.ts
  3. 6
      frontend/services/application/project/projectData.ts

6
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[] = [],

6
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

6
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

Loading…
Cancel
Save