From 756334615d8edda32ab337c3ecacd3870dbafb56 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 7 Mar 2022 12:07:54 +0900 Subject: [PATCH] Add validate function to data import page --- frontend/pages/projects/_id/dataset/import.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/pages/projects/_id/dataset/import.vue b/frontend/pages/projects/_id/dataset/import.vue index 05921b65..c5a352a5 100644 --- a/frontend/pages/projects/_id/dataset/import.vue +++ b/frontend/pages/projects/_id/dataset/import.vue @@ -86,7 +86,7 @@ :disabled="isDisabled" @click="importDataset" > - Import + {{ $t('generic.import') }} @@ -106,7 +106,12 @@ export default { components: { FilePond, }, + layout: 'project', + + validate({ params }) { + return /^\d+$/.test(params.id) + }, data() { return {