Fix multiple issues in Data Model view (#8333)

* disable the labels for disabled display templates

* fix color placeholder & field name

* fix singleton field label translation

* fix collections note placeholder translation
This commit is contained in:
Azri Kahar
2021-09-27 22:10:39 +08:00
committed by GitHub
parent 437e52a47c
commit 915ff76ffc
35 changed files with 42 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ fields:
- field: note
interface: input
options:
placeholder: A description of this collection...
placeholder: $t:field_options.directus_collections.note_placeholder
width: half
- field: icon
@@ -32,7 +32,7 @@ fields:
- field: color
interface: select-color
options:
placeholder: $t:field_options.directus_collections.note_placeholder
placeholder: $t:interfaces.select-color.placeholder
width: half
- field: display_template
@@ -52,7 +52,7 @@ fields:
special: boolean
interface: boolean
options:
label: Treat as single object
label: $t:singleton_label
width: half
- field: translations

View File

@@ -281,7 +281,7 @@ export default defineComponent({
if (!field) return '';
return `<button contenteditable="false" data-field="${fieldKey}">${field.name}</button>`;
return `<button contenteditable="false" data-field="${fieldKey}" disabled="${props.disabled}">${field.name}</button>`;
})
.join('');
contentEl.value.innerHTML = newInnerHTML;
@@ -323,7 +323,7 @@ export default defineComponent({
user-select: none;
}
:deep(button:hover) {
:deep(button:not(:disabled):hover) {
color: var(--white);
background-color: var(--danger);
}

View File

@@ -672,6 +672,7 @@ fields:
collection: المجموعة
icon: أيقونة
note: ملحوظة
color: لون
display_template: عرض القالب
hidden: مخفي
translations: ترجمات تسمية المجموعات

View File

@@ -769,6 +769,7 @@ fields:
collection: Колекция
icon: Икона
note: Бележка
color: Цвят
display_template: Шаблон при показване
hidden: Скриване
singleton: Сек
@@ -894,7 +895,7 @@ field_options:
auth_password_policy:
none_text: Без - не се препоръчва
weak_text: Слаба - минимум от 8 символа
strong_text: Силна - главни, малки, числа и специални символи
strong_text: Силна - главни, малки, числа и специални символи
storage_asset_presets:
fit:
contain_text: Напасване (запазване на съотношението)

View File

@@ -598,7 +598,7 @@ wysiwyg_options:
superscript: Superíndex
codeblock: Codi
blockquote: Bloc de cita
bullist: Llista amb vinyetes
bullist: Llista amb vinyetes
numlist: Llista ordenada
hr: Regle horitzontal
link: Afegeix / Edita l'enllaç
@@ -720,6 +720,7 @@ fields:
collection: Coŀlecció
icon: Icona
note: Nota
color: Color
display_template: Mostra la plantilla
hidden: Amagat
singleton: Singleton

View File

@@ -314,6 +314,7 @@ fields:
collection: Kategorie
icon: Ikona
note: Poznámka
color: Barva
hidden: Skryté
directus_files:
title: Název

View File

@@ -289,6 +289,7 @@ fields:
collection: Samling
icon: Ikon
note: Kommentar
color: Farve
hidden: Skjult
directus_files:
title: Titel

View File

@@ -834,6 +834,7 @@ fields:
collection: Sammlung
icon: Symbol
note: Notiz
color: Farbe
display_template: Anzeigevorlage
hidden: Ausgeblendet
singleton: Einzelnes Element

View File

@@ -847,6 +847,7 @@ fields:
collection: Collection
icon: Icon
note: Note
color: Color
display_template: Display Template
hidden: Hidden
singleton: Singleton

View File

@@ -703,6 +703,7 @@ fields:
collection: Colección
icon: Ícono
note: Nota
color: Color
display_template: Plantilla de Presentación
hidden: Oculto
singleton: Singleton

View File

@@ -703,6 +703,7 @@ fields:
collection: Colección
icon: Icono
note: Nota
color: Color
display_template: Plantilla de Presentación
hidden: Oculto
singleton: Singleton

View File

@@ -702,6 +702,7 @@ fields:
collection: Colección
icon: Ícono
note: Nota
color: Color
display_template: Plantilla de Presentación
hidden: Oculto
singleton: Singleton

View File

@@ -640,7 +640,7 @@ page_help_docs_global: >-
page_help_files_collection: >-
**Failikogu* - Näitab kõiki faile ja pilte selles projektis. Muuta saab vaateid, filtreid jm ning lisada järjehoidjaid
page_help_files_item: >-
**Faili detailid* - Vorm, milles saab muuta faili metaandmeid, ligipääse jm
**Faili detailid* - Vorm, milles saab muuta faili metaandmeid, ligipääse jm
page_help_settings_project: "**Projekti seaded** - Sinu projekti üldised seaded"
page_help_settings_datamodel_collections: >-
**Andmekogud** - Näitab kõiki andmekogusid (sh süsteemseid)
@@ -686,6 +686,7 @@ fields:
collection: Kogud
icon: Ikoon
note: Märkus
color: Värv
display_template: Vaate mall
hidden: Peidetud
singleton: Üksik

View File

@@ -683,6 +683,7 @@ fields:
collection: Kokoelma
icon: Kuvake
note: Muistiinpano
color: Väri
display_template: Esitysmalli
hidden: Piilotettu
singleton: Singleton

View File

@@ -764,6 +764,7 @@ fields:
collection: Collection
icon: Icône
note: Remarque
color: Couleur
display_template: Modèle d'affichage
hidden: Caché
singleton: Singleton

View File

@@ -740,6 +740,7 @@ fields:
collection: Gyűjtemény
icon: Ikon
note: Jegyzet
color: Szín
display_template: Megjelenítési sablon
hidden: Rejtett
singleton: Egyedüli

View File

@@ -489,6 +489,7 @@ fields:
collection: Koleksi
icon: Ikon
note: Catatan
color: Warna
display_template: Tampilan Template
hidden: Tersembunyi
sort_field: Sortir Baris

View File

@@ -834,6 +834,7 @@ fields:
collection: Raccolta
icon: Icona
note: Nota
color: Colore
display_template: Display Template
hidden: Nascosto
singleton: Singleton

View File

@@ -312,6 +312,7 @@ fields:
directus_collections:
icon: アイコン
note: 備考
color:
hidden: 非表示
singleton: シングルトン
sort_field: フィールドの並べ替え

View File

@@ -639,6 +639,7 @@ fields:
collection: Rinkinys
icon: Ikona
note: Pastaba
color: Spalva
display_template: Rodymo šablonas
hidden: Paslėptas
singleton: Singleton objektas

View File

@@ -97,6 +97,7 @@ fields:
directus_collections:
collection: Koleksi
note: Nota
color: Warna
directus_files:
title: Tajuk
description: Penerangan

View File

@@ -703,6 +703,7 @@ fields:
collection: Collectie
icon: Icoon
note: Notitie
color: Kleur
display_template: Weergavesjabloon
hidden: Verborgen
singleton: Singleton

View File

@@ -708,6 +708,7 @@ fields:
collection: Kolekcja
icon: Ikona
note: Notatka
color: Kolor
display_template: Wyświetl szablon
hidden: Ukryte
singleton: Singleton

View File

@@ -721,6 +721,7 @@ fields:
collection: Coleção
icon: Ícone
note: Nota
color: Cor
display_template: Modelo de exibição
hidden: Oculto
singleton: Singleton
@@ -826,7 +827,7 @@ fields:
collection_list: Navegação da Coleção
directus_webhooks:
name: Nome
method: Método
method: Método
status: Status
data: Dados
data_label: Enviar Dados do Evento

View File

@@ -558,6 +558,7 @@ fields:
directus_collections:
collection: Coleção
note: Nota
color: Cor
display_template: Templates de Exibição
sort_field: Campo de ordenação
directus_files:

View File

@@ -768,6 +768,7 @@ fields:
collection: Коллекция
icon: Иконка
note: Заметка
color: Цвет
display_template: Шаблон отображения
hidden: Скрыто
singleton: Синглтон

View File

@@ -722,6 +722,7 @@ fields:
collection: Zbirka
icon: Ikona
note: Opomba
color: Barva
display_template: Prikaži predlogo
hidden: Skrito
singleton: En zapis

View File

@@ -685,6 +685,7 @@ fields:
collection: Kolekcija
icon: Ikonica
note: Napomena
color: Boja
display_template: Šablon za Prikaz
hidden: Sakriveno
singleton: Singleton

View File

@@ -664,6 +664,7 @@ fields:
collection: Kollektion
icon: Ikon
note: Anteckning
color: Färg
display_template: Visningsmall
hidden: Dold
singleton: Singleton

View File

@@ -744,6 +744,7 @@ fields:
collection: คอลเลกชัน
icon: ไอคอน
note: หมายเหตุ
color: สี
display_template: แม่แบบการแสดงผล
hidden: ซ่อน
singleton: Singleton

View File

@@ -550,6 +550,7 @@ fields:
collection: Koleksiyon
icon: İkon
note: Not
color: Renk
display_template: Görüntüleme Şablonu
hidden: Gizli
sort_field: Sıralama Alanı

View File

@@ -235,6 +235,7 @@ fields:
collection: Колекція
icon: Іконка
note: Примітка
color: Колір
hidden: Приховано
directus_files:
title: Заголовок

View File

@@ -490,6 +490,7 @@ fields:
collection: Danh mục
icon: Biểu tượng
note: Ghi chú
color: Màu sắc
display_template: Mẫu hiển thị
hidden: Ẩn
sort_field: Sắp xếp theo trường

View File

@@ -766,6 +766,7 @@ fields:
collection: 收藏
icon: 图标
note: 注释
color: 颜色
display_template: 显示模板
hidden: 隐藏
singleton: 单一

View File

@@ -456,6 +456,7 @@ fields:
collection: 集合
icon: 圖示
note: 備註
color: 顏色
display_template: 顯示模板
hidden: 隱藏
sort_field: 排序欄位