Relational consistency (#4093)

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Nitwel
2021-04-22 01:31:12 +02:00
committed by GitHub
parent 070df173d7
commit 7d64c8ab47
14 changed files with 357 additions and 506 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div>
<div class="form">
<div class="field half-left" v-if="fieldData.meta">
<div class="label type-label">{{ $t('readonly') }}</div>
@@ -21,7 +20,7 @@
<div class="label type-label">{{ $t('field_name_translations') }}</div>
<interface-repeater
v-model="fieldData.meta.translations"
:template="'{{ translation }} ({{ language }})'"
:template="'[{{ language }}] {{ translation }}'"
:fields="[
{
field: 'language',
@@ -30,6 +29,11 @@
meta: {
interface: 'system-language',
width: 'half',
display: 'formatted-value',
display_options: {
font: 'monospace',
color: 'var(--foreground-subdued)',
},
},
schema: {
default_value: 'en-US',
@@ -55,10 +59,7 @@
</template>
<script lang="ts">
import { defineComponent, computed } from '@vue/composition-api';
import useSync from '@/composables/use-sync';
import { types } from '@/types';
import i18n from '@/lang';
import { defineComponent } from '@vue/composition-api';
import { state } from '../store';
export default defineComponent({