Skip to content

Commit f072682

Browse files
committed
Add project creation options in frontend: EnableShareAnnotations and EnableRandomizeDocOrder
1 parent c73d870 commit f072682

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

frontend/components/organisms/projects/ProjectCreationForm.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
data-test="project-type"
3939
required
4040
/>
41+
<v-checkbox
42+
v-model="enableRandomizeDocOrder"
43+
label="Randomize document order"
44+
/>
45+
<v-checkbox
46+
v-model="enableShareAnnotation"
47+
label="Share annotations across all users"
48+
/>
4149
</v-form>
4250
</template>
4351
</base-card>
@@ -72,6 +80,8 @@ export default {
7280
name: '',
7381
description: '',
7482
projectType: null,
83+
enableShareAnnotation: false,
84+
enableRandomizeDocOrder: false,
7585
projectNameRules,
7686
projectTypeRules,
7787
descriptionRules
@@ -113,9 +123,9 @@ export default {
113123
description: this.description,
114124
project_type: this.getServerType(),
115125
guideline: 'Please write annotation guideline.',
116-
resourcetype: this.getResourceType()
117-
// randomize_document_order: this.randomizeDocumentOrder,
118-
// collaborative_annotation: this.collaborativeAnnotation
126+
resourcetype: this.getResourceType(),
127+
randomize_document_order: this.enableRandomizeDocOrder,
128+
collaborative_annotation: this.enableShareAnnotation
119129
})
120130
this.reset()
121131
this.cancel()

0 commit comments

Comments
 (0)