@burh/nuxt-core 1.1.20 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,7 +174,7 @@
174
174
  <span
175
175
  class="info-text"
176
176
  >
177
- {{edu.formation_level_id | formationLevel}}
177
+ {{getFormationLevel(edu.formation_level_id)}}
178
178
  </span>
179
179
  </div>
180
180
 
@@ -310,21 +310,6 @@ export default {
310
310
  ]
311
311
  }
312
312
  },
313
- filters: {
314
- formationLevel(id) {
315
- const typeFormation = {
316
- 1: this.$t('user_cv.middle_side.formation_level_high_school'),
317
- 2: this.$t('user_cv.middle_side.formation_level_technical'),
318
- 3: this.$t('user_cv.middle_side.formation_level_graduation'),
319
- 4: this.$t('user_cv.middle_side.formation_level_post_graduation'),
320
- 5: this.$t('user_cv.middle_side.formation_level_masters'),
321
- 6: this.$t('user_cv.middle_side.formation_level_doctorate'),
322
- 8: this.$t('user_cv.middle_side.formation_level_elementary')
323
- };
324
-
325
- return typeFormation[id] || '-';
326
- }
327
- },
328
313
  components: {
329
314
  ElDropdown: Dropdown,
330
315
  ElDropdownMenu: DropdownMenu,
@@ -371,6 +356,19 @@ export default {
371
356
  }
372
357
  },
373
358
  methods: {
359
+ getFormationLevel(id) {
360
+ const typeFormation = {
361
+ 1: this.$t('user_cv.middle_side.formation_level_high_school'),
362
+ 2: this.$t('user_cv.middle_side.formation_level_technical'),
363
+ 3: this.$t('user_cv.middle_side.formation_level_graduation'),
364
+ 4: this.$t('user_cv.middle_side.formation_level_post_graduation'),
365
+ 5: this.$t('user_cv.middle_side.formation_level_masters'),
366
+ 6: this.$t('user_cv.middle_side.formation_level_doctorate'),
367
+ 8: this.$t('user_cv.middle_side.formation_level_elementary')
368
+ };
369
+
370
+ return typeFormation[id] || '-';
371
+ },
374
372
  getFormattedValue(type, value) {
375
373
  if (!value || typeof value !== 'string') return '';
376
374