File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- const props = withDefaults (
3- defineProps <{
4- titleKey? : string
5- }>(),
6- {
7- titleKey: ' package.downloads.modal_title' ,
8- },
9- )
2+ const props = defineProps <{
3+ title: string
4+ }>()
105
116const emit = defineEmits <{
127 (e : ' transitioned' ): void
@@ -15,7 +10,7 @@ const emit = defineEmits<{
1510
1611<template >
1712 <Modal
18- :modalTitle =" $t(titleKey) "
13+ :modalTitle =" title "
1914 id =" chart-modal"
2015 class =" h-full sm:h-min sm:border sm:border-border sm:rounded-lg shadow-xl sm:max-h-[90vh] sm:max-w-3xl"
2116 @transitioned =" emit('transitioned')"
Original file line number Diff line number Diff line change @@ -795,7 +795,7 @@ function getTagVersions(tag: string): VersionDisplay[] {
795795 <!-- Version Distribution Modal -->
796796 <PackageChartModal
797797 v-if =" isDistributionModalOpen"
798- title-key = " package.versions.distribution_modal_title"
798+ : title= " $t(' package.versions.distribution_modal_title') "
799799 @close =" closeDistributionModal"
800800 @transitioned =" handleDistributionModalTransitioned"
801801 >
Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ const config = computed(() => {
275275
276276 <PackageChartModal
277277 v-if =" isChartModalOpen && hasWeeklyDownloads"
278+ :title =" $t('package.downloads.modal_title')"
278279 @close =" handleModalClose"
279280 @transitioned =" handleModalTransitioned"
280281 >
You can’t perform that action at this time.
0 commit comments