Browse Source

Merge pull request #450 from chakki-works/bugfix/add-project-creation-options

Add project creation options in new frontend
pull/441/head
Hiroki Nakayama 5 years ago
committed by GitHub
parent
commit
c6a9c9a3c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 3 deletions
  1. 16
      frontend/components/organisms/projects/ProjectCreationForm.vue

16
frontend/components/organisms/projects/ProjectCreationForm.vue

@ -38,6 +38,14 @@
data-test="project-type" data-test="project-type"
required required
/> />
<v-checkbox
v-model="enableRandomizeDocOrder"
label="Randomize document order"
/>
<v-checkbox
v-model="enableShareAnnotation"
label="Share annotations across all users"
/>
</v-form> </v-form>
</template> </template>
</base-card> </base-card>
@ -72,6 +80,8 @@ export default {
name: '', name: '',
description: '', description: '',
projectType: null, projectType: null,
enableShareAnnotation: false,
enableRandomizeDocOrder: false,
projectNameRules, projectNameRules,
projectTypeRules, projectTypeRules,
descriptionRules descriptionRules
@ -113,9 +123,9 @@ export default {
description: this.description, description: this.description,
project_type: this.getServerType(), project_type: this.getServerType(),
guideline: 'Please write annotation guideline.', guideline: 'Please write annotation guideline.',
resourcetype: this.getResourceType()
// randomize_document_order: this.randomizeDocumentOrder,
// collaborative_annotation: this.collaborativeAnnotation
resourcetype: this.getResourceType(),
randomize_document_order: this.enableRandomizeDocOrder,
collaborative_annotation: this.enableShareAnnotation
}) })
this.reset() this.reset()
this.cancel() this.cancel()

Loading…
Cancel
Save