Browse Source

Add validate function to data import page

pull/1719/head
Hironsan 2 years ago
parent
commit
756334615d
1 changed files with 6 additions and 1 deletions
  1. 7
      frontend/pages/projects/_id/dataset/import.vue

7
frontend/pages/projects/_id/dataset/import.vue

@ -86,7 +86,7 @@
:disabled="isDisabled"
@click="importDataset"
>
Import
{{ $t('generic.import') }}
</v-btn>
</v-card-actions>
</v-card>
@ -106,7 +106,12 @@ export default {
components: {
FilePond,
},
layout: 'project',
validate({ params }) {
return /^\d+$/.test(params.id)
},
data() {
return {

Loading…
Cancel
Save