diff --git a/lang/de.json b/lang/de.json
index f15c1e48b3..4b424e4ce3 100644
--- a/lang/de.json
+++ b/lang/de.json
@@ -600,7 +600,6 @@
"Icon": "Icon",
"Icon Set": "Icon-Set",
"ID": "ID",
- "ID not found": "ID nicht gefunden",
"ID regenerated and Stache cleared": "ID neu generiert und Stache geleert",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Falls das Klicken auf den „:actionText“-Button nicht funktioniert, kopiere die folgende URL in deinen Webbrowser:",
"Ignoring Section|Ignoring Sections": "Abschnitt wird ignoriert|Abschnitte werden ignoriert",
diff --git a/lang/de_CH.json b/lang/de_CH.json
index 4097416f59..96a9c39eee 100644
--- a/lang/de_CH.json
+++ b/lang/de_CH.json
@@ -600,7 +600,6 @@
"Icon": "Icon",
"Icon Set": "Icon-Set",
"ID": "ID",
- "ID not found": "ID nicht gefunden",
"ID regenerated and Stache cleared": "ID neu generiert und Stache geleert",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Falls das Klicken auf den «:actionText»-Button nicht funktioniert, kopiere die folgende URL in deinen Webbrowser:",
"Ignoring Section|Ignoring Sections": "Abschnitt wird ignoriert|Abschnitte werden ignoriert",
diff --git a/lang/fr.json b/lang/fr.json
index a0de527220..1b3a33a5c2 100644
--- a/lang/fr.json
+++ b/lang/fr.json
@@ -601,7 +601,6 @@
"Icon": "Icône",
"Icon Set": "Jeu d'icônes",
"ID": "ID",
- "ID not found": "ID non trouvée",
"ID regenerated and Stache cleared": "ID regénéré et Stache effacé",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Si vous ne parvenez pas à cliquer sur le bouton \":actionText\", copiez et collez l'URL ci-dessous dans votre navigateur Web :",
"Ignoring Section|Ignoring Sections": "Ignorer la section|Ignorer les sections",
diff --git a/lang/nl.json b/lang/nl.json
index bdfc7d89a6..405030b35f 100644
--- a/lang/nl.json
+++ b/lang/nl.json
@@ -585,7 +585,6 @@
"Icon": "Icoon",
"Icon Set": "pictogram set",
"ID": "ID",
- "ID not found": "ID niet gevonden",
"ID regenerated and Stache cleared": "ID's opnieuw gegenereerd en Stache geleegd",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Als je problemen ondervindt bij het klikken op de knop \":actionText\", kopieer en plak de onderstaande URL dan in je webbrowser:",
"Image": "Afbeelding",
diff --git a/lang/ru.json b/lang/ru.json
index 3b9a494097..88c0ab02f9 100644
--- a/lang/ru.json
+++ b/lang/ru.json
@@ -623,7 +623,6 @@
"Icon": "Иконка",
"Icon Set": "Набор иконок",
"ID": "ID",
- "ID not found": "ID не найден",
"ID regenerated and Stache cleared": "ID обновлён, а Stache очищен",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Если у вас возникли проблемы с нажатием кнопки \":actionText\" скопируйте и вставьте URL ниже\nв свой веб-браузер:",
"Image": "Изображения",
diff --git a/resources/js/components/fieldtypes/assets/Asset.js b/resources/js/components/fieldtypes/assets/Asset.js
index 980a9c9f12..83440d00cb 100644
--- a/resources/js/components/fieldtypes/assets/Asset.js
+++ b/resources/js/components/fieldtypes/assets/Asset.js
@@ -50,12 +50,18 @@ export default {
},
label() {
- return this.asset.basename;
+ return this.asset.invalid ? this.asset.id : this.asset.basename;
},
needsAlt() {
+ if (this.asset.invalid) return false;
+
return (this.asset.isImage || this.asset.isSvg) && !this.asset.values.alt;
},
+
+ invalidLabel() {
+ return __('messages.relationship_item_unavailable');
+ },
},
methods: {
@@ -67,6 +73,7 @@ export default {
edit() {
if (this.readOnly) return;
+ if (this.asset.invalid) return;
this.editing = true;
},
diff --git a/resources/js/components/fieldtypes/assets/AssetRow.vue b/resources/js/components/fieldtypes/assets/AssetRow.vue
index 8f94e6851e..2d2f736e44 100644
--- a/resources/js/components/fieldtypes/assets/AssetRow.vue
+++ b/resources/js/components/fieldtypes/assets/AssetRow.vue
@@ -19,16 +19,20 @@
:alt="asset.basename"
v-if="thumbnail"
/>
-