diff --git a/src/components/EditTrainingDialog.vue b/src/components/EditTrainingDialog.vue index 51a3a07..a6e6bff 100644 --- a/src/components/EditTrainingDialog.vue +++ b/src/components/EditTrainingDialog.vue @@ -16,10 +16,13 @@ import useLocalizedActivities from '@/hooks/localizedActivities'; const scheduleStore = useScheduleStore(); const {schedule} = storeToRefs(scheduleStore); const {addOrEditTraining} = scheduleStore; + const appStateStore = useAppStateStore(); const {closeEditTrainingDialog} = appStateStore; const {trainingDialogOpen, trainingData} = storeToRefs(appStateStore); + const {t} = useI18n(); + const {isSmallScreen} = useScreenSize(); const tickLabels = computed(() => ({ @@ -72,10 +75,10 @@ const resetAndClose = () => { persistent > - {{ t('editTraining.title') }} + {{ $t('editTraining.title') }} - {{ t('editTraining.activity') }} + {{ $t('editTraining.activity') }} { @input="v$.description.$touch" @blur="v$.description.$touch" /> - {{ t('editTraining.intensity') }} + {{ $t('editTraining.intensity') }} { color="primary" data-test-id="edit-training-save-button" @click="handleSave()" - >{{ t('editTraining.save') }}{{ $t('editTraining.save') }} {{ t('editTraining.closeDialog') }}{{ $t('editTraining.closeDialog') }} diff --git a/src/components/ScheduleSettings.vue b/src/components/ScheduleSettings.vue index 2fb7536..4b8c077 100644 --- a/src/components/ScheduleSettings.vue +++ b/src/components/ScheduleSettings.vue @@ -1,7 +1,6 @@ diff --git a/src/components/TrainingCard.vue b/src/components/TrainingCard.vue index 96fdc4e..84a2716 100644 --- a/src/components/TrainingCard.vue +++ b/src/components/TrainingCard.vue @@ -1,6 +1,5 @@ diff --git a/src/components/TrainingCardSummary.vue b/src/components/TrainingCardSummary.vue index 575b449..272ff43 100644 --- a/src/components/TrainingCardSummary.vue +++ b/src/components/TrainingCardSummary.vue @@ -1,12 +1,11 @@ diff --git a/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap b/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap index 78e22d8..7282a14 100644 --- a/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap +++ b/src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap @@ -23,7 +23,7 @@ exports[`ScheduleSettings > mounts 1`] = `
- @@ -337,7 +337,7 @@ exports[`ScheduleSettings > mounts 1`] = `