File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
templates/components/public Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,7 @@ import Helper from '@ember/component/helper';
3
3
4
4
// inputs: bg color, dark color (chosen if bg is light), light color (chosen if bg is dark)
5
5
export default Helper . helper ( function ( params : string [ ] ) : string {
6
- return getTextColor ( params [ 0 ] , params [ 1 ] , params [ 2 ] ) ;
6
+ const color = params [ 0 ] ;
7
+ if ( ! color ) { return '#000' }
8
+ return getTextColor ( color , params [ 1 ] , params [ 2 ] ) ;
7
9
} ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import moment from 'moment';
5
5
import { set } from '@ember/object' ;
6
6
import ENV from 'open-event-frontend/config/environment' ;
7
7
import { allSettled } from 'rsvp' ;
8
+ import { SPEAKERS_FILTER } from './speakers' ;
8
9
9
10
@classic
10
11
export default class IndexRoute extends Route {
@@ -37,9 +38,11 @@ export default class IndexRoute extends Route {
37
38
name : 'is-featured' ,
38
39
op : 'eq' ,
39
40
val : 'true'
40
- }
41
+ } ,
42
+ ...SPEAKERS_FILTER
41
43
] ,
42
- 'page[size]' : 0
44
+ include : 'sessions.track' ,
45
+ 'page[size]' : 0
43
46
} ) ;
44
47
const sponsorsPromise = event . get ( 'sponsors' ) ;
45
48
const taxPromise = event . get ( 'tax' ) ;
Original file line number Diff line number Diff line change 53
53
</p >
54
54
{{ /if }}
55
55
<a href =" {{ href-to ' public.sessions' (query-params session_id =session.id )}} " >
56
- <div class =" ui fluid rounded-default p-4" style ={{ css color =session.track.fontColor background-color =session.track.color }} >
56
+ <div class =" ui fluid rounded-default p-4" style ={{ css color =( text-color session.track.color ) background-color =session.track.color }} >
57
57
<div style ={{ css opacity =0.9 }} >
58
58
{{ #if (and session.startsAt session.endsAt )}}
59
59
<strong >{{ general-date session.startsAt @timezone ' HH:mm' }} - {{ general-date session.endsAt @timezone ' hh:mm' }} </strong >
60
60
{{ /if }}
61
- <h3 class =" m-0" style ={{ css user-select =' text' color = ( text-color session.track.color ) }} >
61
+ <h3 class =" m-0" style ={{ css user-select =' text' }} >
62
62
{{ session.title }}
63
63
</h3 >
64
64
</div >
You can’t perform that action at this time.
0 commit comments