Search texts and states, help tooltip, wider field (F4)
materio_sapi: result messages with real plurals; without any exact match the results are called close (the neighbour search always finds some). Former help sentence of the base page kept, French corrected. Messages in SearchMessage, unit tested; French added by update 11002. materiotheme: placeholder "Describe the material you are looking for", wider search field, "?" button with a help tooltip and clickable examples, "Loading…", "End of results"; texts in vuejs/i18n/search.js. Page title "Base" restored without a search (keys is an array, test its length). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
This commit is contained in:
@@ -135,7 +135,9 @@ export default {
|
||||
commit('resetInfos')
|
||||
// Invalidate any in-flight response from a previous search.
|
||||
commit('incrementSearchId')
|
||||
if (state.keys || state.terms.length) {
|
||||
// keys is an array, always truthy: test its length, otherwise the
|
||||
// title of the page was empty without a search (F4).
|
||||
if (state.keys.length) {
|
||||
this.commit('Common/setPagetitle', state.keys.join(', '))
|
||||
} else {
|
||||
this.commit('Common/setPagetitle', 'Base')
|
||||
|
||||
Reference in New Issue
Block a user