Hiroki Nakayama
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
frontend/pages/projects/_id/dataset/_example_id/edit.vue
-
frontend/pages/projects/_id/labels/_label_id/edit.vue
-
frontend/pages/projects/_id/labels/add.vue
|
@ -31,7 +31,7 @@ export default Vue.extend({ |
|
|
|
|
|
|
|
|
validate({ params, store }) { |
|
|
validate({ params, store }) { |
|
|
if (/^\d+$/.test(params.id) && /^\d+$/.test(params.example_id)) { |
|
|
if (/^\d+$/.test(params.id) && /^\d+$/.test(params.example_id)) { |
|
|
const project = store.getters['project/project'] as Project |
|
|
|
|
|
|
|
|
const project = store.getters['projects/project'] as Project |
|
|
return project.isTextProject |
|
|
return project.isTextProject |
|
|
} |
|
|
} |
|
|
return false |
|
|
return false |
|
|
|
@ -26,7 +26,7 @@ export default Vue.extend({ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if (/^\d+$/.test(params.id)) { |
|
|
if (/^\d+$/.test(params.id)) { |
|
|
const project = store.getters['project/project'] as Project |
|
|
|
|
|
|
|
|
const project = store.getters['projects/project'] as Project |
|
|
return project.canDefineLabel |
|
|
return project.canDefineLabel |
|
|
} |
|
|
} |
|
|
return false |
|
|
return false |
|
|
|
@ -36,7 +36,7 @@ export default Vue.extend({ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if (/^\d+$/.test(params.id)) { |
|
|
if (/^\d+$/.test(params.id)) { |
|
|
const project = store.getters['project/project'] as Project |
|
|
|
|
|
|
|
|
const project = store.getters['projects/project'] as Project |
|
|
return project.canDefineLabel |
|
|
return project.canDefineLabel |
|
|
} |
|
|
} |
|
|
return false |
|
|
return false |
|
|