fix typo & change default selected node

This commit is contained in:
axolotle
2022-09-06 15:09:53 +02:00
parent 5ec4c53598
commit 04b28c308f
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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 }) {