From 2ed1e92d5c4630f1eb69beb3f84fe60520186258 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 8 Dec 2020 15:57:53 -0500 Subject: [PATCH] Fix auto-gen translations not setting interface correctly --- .../modules/settings/routes/data-model/field-detail/store.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/modules/settings/routes/data-model/field-detail/store.ts b/app/src/modules/settings/routes/data-model/field-detail/store.ts index 6a1e2c1d29..0f683835d4 100644 --- a/app/src/modules/settings/routes/data-model/field-detail/store.ts +++ b/app/src/modules/settings/routes/data-model/field-detail/store.ts @@ -116,6 +116,11 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp ); } + // Auto generate translations + if (isExisting === false && type === 'translations') { + state.fieldData.meta.interface = 'translations'; + } + if (type === 'file') useFile(); else if (type === 'm2o') useM2O(); else if (type === 'm2m' || type === 'files' || type === 'translations') useM2M();