From 3960582302b7cb900361106e0eef67f5367e10e4 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Thu, 3 Feb 2022 23:09:58 +0100 Subject: [PATCH] Fix translations layout (#9421) * fix translations layout * fix lang names not being shown * fix lint warnings * both versions of field here need to test * lgtg? * Persist icon on open popover Co-authored-by: Azri Kahar Co-authored-by: Jay Cammarano Co-authored-by: jaycammarano Co-authored-by: rijkvanzanten --- app/src/displays/translations/index.ts | 8 +-- .../displays/translations/translations.vue | 63 ++++++++++++------- 2 files changed, 44 insertions(+), 27 deletions(-) diff --git a/app/src/displays/translations/index.ts b/app/src/displays/translations/index.ts index ae8b0bcf80..067106137a 100644 --- a/app/src/displays/translations/index.ts +++ b/app/src/displays/translations/index.ts @@ -1,8 +1,8 @@ -import { defineDisplay } from '@directus/shared/utils'; -import adjustFieldsForDisplays from '@/utils/adjust-fields-for-displays'; -import { getFieldsFromTemplate } from '@directus/shared/utils'; +import { defineDisplay, getFieldsFromTemplate } from '@directus/shared/utils'; import DisplayTranslations from './translations.vue'; -import { useFieldsStore, useRelationsStore } from '@/stores'; +import { useFieldsStore } from '@/stores'; +import { useRelationsStore } from '@/stores'; +import adjustFieldsForDisplays from '@/utils/adjust-fields-for-displays'; type Options = { template: string; diff --git a/app/src/displays/translations/translations.vue b/app/src/displays/translations/translations.vue index 88ffa3df0a..890b3451c9 100644 --- a/app/src/displays/translations/translations.vue +++ b/app/src/displays/translations/translations.vue @@ -1,30 +1,32 @@