Browse Source

Update filter option for image classification

pull/1370/head
Hironsan 4 years ago
parent
commit
d692337b9a
1 changed files with 5 additions and 3 deletions
  1. 8
      frontend/domain/models/project/project.ts

8
frontend/domain/models/project/project.ts

@ -91,11 +91,13 @@ export class ProjectReadItem {
get filterOption() {
if (this.project_type === 'DocumentClassification') {
return 'doc_annotations__isnull'
return 'categories__isnull'
} else if (this.project_type === 'SequenceLabeling') {
return 'seq_annotations__isnull'
return 'spans__isnull'
} else if (this.project_type === 'Seq2seq') {
return 'seq2seq_annotations__isnull'
return 'texts__isnull'
} else if (this.project_type === 'ImageClassification') {
return 'categories__isnull'
} else {
return ''
}

Loading…
Cancel
Save