|
@@ -12,6 +12,7 @@
|
|
|
/>
|
|
|
</b-form-group>
|
|
|
|
|
|
+ <!-- LIST + MAP ONLY -->
|
|
|
<b-form-group
|
|
|
v-if="mode !== 'tree'"
|
|
|
:label="$t('options.filters.title')"
|
|
@@ -37,7 +38,20 @@
|
|
|
:disabled="true"
|
|
|
/>
|
|
|
</b-form-group>
|
|
|
+
|
|
|
+ <b-form-group
|
|
|
+ :label="$t('options.search.title')"
|
|
|
+ label-for="search-input"
|
|
|
+ >
|
|
|
+ <b-input-group append="search-icon">
|
|
|
+ <b-form-input
|
|
|
+ v-model="activeSearch" id="search-input" trim
|
|
|
+ />
|
|
|
+ </b-input-group>
|
|
|
+ </b-form-group>
|
|
|
</b-form-group>
|
|
|
+
|
|
|
+ <!-- TREE ONLY -->
|
|
|
<b-form-group
|
|
|
v-else
|
|
|
label="Texte de départ :"
|
|
@@ -46,24 +60,11 @@
|
|
|
>
|
|
|
<b-form-select
|
|
|
id="text-depart-select"
|
|
|
- v-model="nodeDepartId"
|
|
|
+ v-model="activeNodeId"
|
|
|
:options="nodesDepartsOptions"
|
|
|
class="border"
|
|
|
/>
|
|
|
</b-form-group>
|
|
|
-
|
|
|
-
|
|
|
- <b-form-group
|
|
|
- :label="$t('options.search.title')"
|
|
|
- label-for="search-input"
|
|
|
- >
|
|
|
- <b-input-group append="search-icon">
|
|
|
- <b-form-input
|
|
|
- v-model="search" id="search-input" trim
|
|
|
- :disabled="true"
|
|
|
- />
|
|
|
- </b-input-group>
|
|
|
- </b-form-group>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -87,35 +88,43 @@ export default {
|
|
|
{ text: this.$t('options.display.choices.card-list'), value: 'list' }
|
|
|
],
|
|
|
selectedTags: [],
|
|
|
- strangeness: 0,
|
|
|
- textDepartId: undefined,
|
|
|
- search: ''
|
|
|
+ strangeness: 0
|
|
|
}
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
- ...mapGetters(['mode', 'nodebook', 'nodesDepartsOptions', 'tagsOptions']),
|
|
|
+ ...mapGetters([
|
|
|
+ 'mode',
|
|
|
+ 'nodeDepartId',
|
|
|
+ 'search',
|
|
|
+ 'nodebook',
|
|
|
+ 'nodesDepartsOptions',
|
|
|
+ 'tagsOptions'
|
|
|
+ ]),
|
|
|
|
|
|
show () {
|
|
|
return this.nodebook.length === 0
|
|
|
},
|
|
|
|
|
|
- nodeDepartId: {
|
|
|
- get () {
|
|
|
- return this.$store.state.library.nodeDepartId
|
|
|
- },
|
|
|
+ activeNodeId: {
|
|
|
+ get () { return this.nodeDepartId },
|
|
|
set (value) {
|
|
|
this.$store.dispatch('SET_NODE_DEPART_ID', value)
|
|
|
}
|
|
|
},
|
|
|
|
|
|
activeMode: {
|
|
|
- get () {
|
|
|
- return this.mode
|
|
|
- },
|
|
|
+ get () { return this.mode },
|
|
|
set (value) {
|
|
|
this.$store.dispatch('UPDATE_QUERY_MODE', value)
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ activeSearch: {
|
|
|
+ get () { return this.search },
|
|
|
+ set (value) {
|
|
|
+ this.$store.commit('SET_SEARCH', value)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|