Skip to content

Commit

Permalink
Prevent translation rows from being edited before existing values are…
Browse files Browse the repository at this point in the history
… loaded (directus#6173)

Fixes directus#6094
  • Loading branch information
rijkvanzanten authored Jun 9, 2021
1 parent e9a8850 commit 1f2bce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/interfaces/translations/translations.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div v-if="languagesLoading">
<div v-if="languagesLoading || previewLoading">
<v-skeleton-loader v-for="n in 5" :key="n" />
</div>

Expand Down Expand Up @@ -93,7 +93,7 @@ export default defineComponent({
const { languages, loading: languagesLoading, template: internalLanguageTemplate } = useLanguages();
const { startEditing, editing, edits, stageEdits, cancelEdit } = useEdits();
const { previewItems, template: internalTranslationsTemplate } = usePreview();
const { previewItems, template: internalTranslationsTemplate, loading: previewLoading } = usePreview();
return {
relationsForField,
Expand All @@ -113,6 +113,7 @@ export default defineComponent({
cancelEdit,
edits,
previewItems,
previewLoading,
};
function useRelations() {
Expand Down

0 comments on commit 1f2bce9

Please sign in to comment.