Browse Source

fix typo & change default selected node

axolotle 1 year ago
parent
commit
04b28c308f
3 changed files with 6 additions and 4 deletions
  1. 3 2
      src/messages/fr.json
  2. 1 1
      src/pages/library/LibraryOptions.vue
  3. 2 1
      src/store/modules/library.js

+ 3 - 2
src/messages/fr.json

@@ -16,7 +16,7 @@
     "reflexion": "Réflexion théorique",
     "lecture": "Lecture rapprochée",
     "sensible": "Expérience sensible",
-    "kit": "Fiche-outil de désapprentisage",
+    "kit": "Fiche-outil de désapprentissage",
     "creation": "Création numérique"
   },
   "options": {
@@ -28,7 +28,8 @@
         "card-list": "Alphabétique"
       },
       "go-to-char": "Aller à la lettre",
-      "shuffle": "Mélanger"
+      "shuffle": "Mélanger",
+      "select-text": "Sélectionner un texte de départ"
     },
     "filters": {
       "title": "Filtres",

+ 1 - 1
src/pages/library/LibraryOptions.vue

@@ -87,7 +87,7 @@
     <search-input v-if="mode !== 'tree'" v-model="activeSearch" />
 
     <!-- TREE ONLY -->
-    <b-form-group v-else id="depart-group" :label="$t('variants.depart')">
+    <b-form-group v-else id="depart-group" :label="$t('options.display.select-text')">
       <b-dropdown id="text-depart-select" variant="outline-dark" right>
         <template #button-content>
           <node-view-title v-if="activeNode" :node="activeNode" />

+ 2 - 1
src/store/modules/library.js

@@ -116,7 +116,8 @@ export default {
 
     async 'INIT_LIBRARY_TREE' ({ state, commit, dispatch, rootState }) {
       const ids = await dispatch('INIT_LIBRARY')
-      return dispatch('SET_NODE_DEPART_ID', ids[ids.length - 1])
+      // set Katalin Molnár "Quant à je" (id: 8) as default selected node
+      return dispatch('SET_NODE_DEPART_ID', 8)
     },
 
     async 'INIT_LIBRARY_MAP' ({ state, commit, dispatch }) {