Add CSV type to app

This commit is contained in:
rijkvanzanten
2020-09-10 16:55:29 -04:00
parent a3494384c7
commit 85c2948261
3 changed files with 9 additions and 0 deletions

View File

@@ -465,6 +465,8 @@
"all_items": "All Items",
"csv": "CSV",
"no_collections": "No Collections",
"create_collection": "Create Collection",
"no_collections_copy_admin": "You dont have any Collections yet. Click the button below to get started.",

View File

@@ -216,6 +216,10 @@ export default defineComponent({
text: i18n.t('json'),
value: 'json',
},
{
text: i18n.t('csv'),
value: 'csv',
},
{
text: i18n.t('uuid'),
value: 'uuid',

View File

@@ -310,6 +310,9 @@ function initLocalStore(
case 'json':
state.fieldData.meta.special = 'json';
break;
case 'csv':
state.fieldData.meta.special = 'csv';
break;
case 'boolean':
state.fieldData.meta.special = 'boolean';
state.fieldData.schema.is_nullable = false;