Skip to content

Commit

Permalink
fix(VFileUpload): remove startsWith check for locale
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Apr 27, 2024
1 parent 219a328 commit 0510ede
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/vuetify/src/labs/VFileUpload/VFileUpload.tsx
Expand Up @@ -84,11 +84,6 @@ export const VFileUpload = genericComponent()({
const vSheetRef = ref<InstanceType<typeof VSheet> | null>(null)

const base = computed(() => typeof props.showSize !== 'boolean' ? props.showSize : undefined)
const title = computed(() => {
return props.title.startsWith('$vuetify')
? t(props.title)
: props.title
})

onMounted(() => {
vSheetRef.value?.$el.addEventListener('dragover', onDragOver)
Expand Down Expand Up @@ -138,7 +133,7 @@ export const VFileUpload = genericComponent()({
}

useRender(() => {
const hasTitle = !!(slots.title || title.value)
const hasTitle = !!(slots.title || props.title)
const hasIcon = !!(slots.icon || props.icon)
const cardProps = VSheet.filterProps(props)
const dividerProps = VDivider.filterProps(props)
Expand Down Expand Up @@ -183,7 +178,7 @@ export const VFileUpload = genericComponent()({

{ hasTitle && (
<div key="title" class="v-file-upload-title">
{ slots.title?.() ?? title.value }
{ slots.title?.() ?? t(props.title) }
</div>
)}

Expand Down

0 comments on commit 0510ede

Please sign in to comment.