Skip to content

Commit

Permalink
Update placeholder text in file-image interface (directus#20004)
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Jufer <[email protected]>
  • Loading branch information
azrikahar and paescuj authored Oct 11, 2023
1 parent 4d0f8e0 commit b93bd0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-pants-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@directus/app': patch
---

Updated placeholder for file-image interface when it is disabled with no value
4 changes: 2 additions & 2 deletions app/src/interfaces/file-image/file-image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ const { createAllowed, updateAllowed } = useRelationPermissionsM2O(relationInfo)
<div class="image" :class="[width, { crop }]">
<v-skeleton-loader v-if="loading" type="input-tall" />

<v-notice v-else-if="disabled && !image" class="disabled-placeholder" center icon="block">
{{ t('disabled') }}
<v-notice v-else-if="disabled && !image" class="disabled-placeholder" center icon="hide_image">
{{ t('no_image_selected') }}
</v-notice>

<div v-else-if="image" class="image-preview" :class="{ 'is-svg': image.type && image.type.includes('svg') }">
Expand Down
1 change: 1 addition & 0 deletions app/src/lang/translations/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ import_from_url: Import File from URL
replace_from_device: Replace File from Device
replace_from_library: Replace File from Library
replace_from_url: Replace File from URL
no_image_selected: No Image Selected
no_file_selected: No File Selected
download_file: Download File
open_file_in_tab: Open file in new tab
Expand Down

0 comments on commit b93bd0b

Please sign in to comment.