File tree 2 files changed +25
-15
lines changed
2 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- VERTICAL_SEPARATOR : {
3
- component : 'QSeparator' ,
4
- vertical : true
2
+ vertical_separator : ( color = null ) => {
3
+ return {
4
+ component : 'QSeparator' ,
5
+ vertical : true ,
6
+ ...( color && color )
7
+ }
5
8
} ,
6
- HORIZONTAL_SEPARATOR : {
7
- component : 'QSeparator' ,
8
- class : 'full-width' ,
9
- style : 'min-height: 1px;'
9
+ horizontal_separator : ( color = null ) => {
10
+ return {
11
+ component : 'QSeparator' ,
12
+ class : 'full-width' ,
13
+ style : 'min-height: 1px;' ,
14
+ ...( color && color )
15
+ }
10
16
}
11
17
}
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- activityLink : ( name , icon , label ) => {
2
+ activityLink : ( name , icon , label , params = null ) => {
3
3
return {
4
4
id : `${ name } -activity-action` ,
5
5
icon,
6
6
label,
7
7
renderer : 'item' ,
8
- route : { name : `${ name } -activity` }
8
+ route : { name : `${ name } -activity` , ... ( params && params ) }
9
9
}
10
10
} ,
11
11
SETTINGS : {
@@ -47,11 +47,15 @@ module.exports = {
47
47
handler : { name : 'launchTour' , params : [ 'home' ] } ,
48
48
renderer : 'item'
49
49
} ,
50
- LOGOUT : {
51
- id : 'logout-action' ,
52
- icon : 'las la-sign-out-alt' ,
53
- label : 'layout.LOGOUT' ,
54
- route : { name : 'logout' } ,
55
- renderer : 'item'
50
+ logout : ( provider = null ) => {
51
+ return {
52
+ id : 'logout-action' ,
53
+ icon : 'las la-sign-out-alt' ,
54
+ label : 'layout.LOGOUT' ,
55
+ route : {
56
+ name : 'logout' , ...( provider && { params : { provider } } )
57
+ } ,
58
+ renderer : 'item'
59
+ }
56
60
}
57
61
}
You can’t perform that action at this time.
0 commit comments