File tree 6 files changed +18
-10
lines changed
6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 12
12
"DELETE" : " Delete" ,
13
13
"RESET" : " Reset" ,
14
14
"CLOSE" : " Close" ,
15
- "SEARCH" : " Search" ,
15
+ "SEARCH" : " Search... " ,
16
16
"DONE" : " Done" ,
17
17
"APPLY" : " Apply" ,
18
18
"RETRY" : " Retry" ,
690
690
"SERIES_EXPORT_FILE" : " Series.csv"
691
691
},
692
692
"KFilter" : {
693
- "SEARCH_LABEL" : " Search "
693
+ "SEARCH_LABEL" : " @:SEARCH "
694
694
},
695
695
"KTextArea" : {
696
696
"COLLAPSE" : " Collapse"
Original file line number Diff line number Diff line change 12
12
"DELETE" : " Supprimer" ,
13
13
"RESET" : " Réinitialiser" ,
14
14
"CLOSE" : " Fermer" ,
15
- "SEARCH" : " Rechercher" ,
15
+ "SEARCH" : " Rechercher... " ,
16
16
"DONE" : " Ok" ,
17
17
"APPLY" : " Appliquer" ,
18
18
"RETRY" : " Réessayer" ,
687
687
"SERIES_EXPORT_FILE" : " Series.csv"
688
688
},
689
689
"KFilter" : {
690
- "SEARCH_LABEL" : " Rechercher "
690
+ "SEARCH_LABEL" : " @:SEARCH "
691
691
},
692
692
"KTextArea" : {
693
693
"COLLAPSE" : " Réduire"
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ module.exports = {
67
67
component : 'action/KToggleStickyVisibility'
68
68
}
69
69
} ,
70
- visible : ( element , rule ) => {
71
- return Object . assign ( element , { visible : rule } )
70
+ assign : ( object , patch ) => {
71
+ return Object . assign ( object , patch )
72
+ } ,
73
+ visible : ( object , rule ) => {
74
+ return module . exports . assign ( object , { visible : rule } )
72
75
}
73
76
}
Original file line number Diff line number Diff line change 1
1
const helpers = require ( './helpers.js' )
2
2
3
3
module . exports = {
4
+ searchText : ( options ) => {
5
+ // fields: fields to search on
6
+ const fields = options ?. fields || [ 'name' , 'description' ]
7
+ return {
8
+ component : 'collection/KFilter' ,
9
+ label : options ?. label ,
10
+ fields
11
+ }
12
+ } ,
4
13
locateUser : ( options ) => {
5
14
// renderer: renderer to be used to display the action
6
15
const renderer = options ?. renderer || 'button'
Original file line number Diff line number Diff line change 1
1
{
2
- "CLOSE" : " Close" ,
3
- "SEARCH" : " Search" ,
4
2
"LAYERS_LABEL" : " My data" ,
5
3
"VIEWS_LABEL" : " My views" ,
6
4
"PROJECTS_LABEL" : " My projects" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "CLOSE" : " Fermer" ,
3
- "SEARCH" : " Rechercher" ,
4
2
"LAYERS_LABEL" : " Mes données" ,
5
3
"VIEWS_LABEL" : " Mes vues" ,
6
4
"PROJECTS_LABEL" : " Mes projets" ,
You can’t perform that action at this time.
0 commit comments