File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 33
33
<div class =" documentation-layout-aside" >
34
34
<QuickNavigationModal
35
35
v-if =" enableQuickNavigation"
36
- :children =" indexNodes"
36
+ :children =" quickNavNodes || indexNodes"
37
37
:showQuickNavigationModal.sync =" showQuickNavigationModal"
38
38
:technology =" technology ? technology.title : ''"
39
+ :placeholder =" quickNavPlaceholder"
39
40
/>
40
41
<transition name =" delay-hiding" >
41
42
<slot
@@ -134,7 +135,7 @@ export default {
134
135
},
135
136
technology: {
136
137
type: Object ,
137
- require : false ,
138
+ required : false ,
138
139
},
139
140
parentTopicIdentifiers: {
140
141
type: Array ,
@@ -144,6 +145,14 @@ export default {
144
145
type: Number ,
145
146
default: null ,
146
147
},
148
+ quickNavNodes: {
149
+ type: Array ,
150
+ default: null ,
151
+ },
152
+ quickNavPlaceholder: {
153
+ type: String ,
154
+ default: null ,
155
+ },
147
156
},
148
157
data () {
149
158
return {
Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ export default {
195
195
type: String ,
196
196
required: false ,
197
197
},
198
+ placeholder: {
199
+ type: String ,
200
+ required: false ,
201
+ },
198
202
},
199
203
computed: {
200
204
childrenMap ({ children }) {
@@ -224,6 +228,7 @@ export default {
224
228
return orderSymbolsByPriority (uniqueMatches).slice (0 , MAX_RESULTS );
225
229
},
226
230
placeholderText () {
231
+ if (this .placeholder ) return this .placeholder ;
227
232
if (! this .technology ) return this .$t (' filter.search' );
228
233
return this .$t (' filter.search-symbols' , { technology: this .technology });
229
234
},
Original file line number Diff line number Diff line change 133
133
"filter" : {
134
134
"title" : " Filter" ,
135
135
"search" : " Search" ,
136
- "search-symbols" : " Search symbols in {technology}" ,
136
+ "search-symbols" : " Search for symbols in {technology}" ,
137
137
"suggested-tags" : " Suggested tag | Suggested tags" ,
138
138
"selected-tags" : " Selected tag | Selected tags" ,
139
139
"add-tag" : " Add tag" ,
You can’t perform that action at this time.
0 commit comments