added 260907 version of worker toolkit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import Ember from 'ember';
|
||||
import CheckinByDate from 'flaredown/mixins/checkin-by-date';
|
||||
|
||||
const {
|
||||
get,
|
||||
computed,
|
||||
Component,
|
||||
inject: {
|
||||
service,
|
||||
},
|
||||
} = Ember;
|
||||
|
||||
export default Component.extend(CheckinByDate, {
|
||||
classNames: ['bottom-nav'],
|
||||
|
||||
notifications: service(),
|
||||
|
||||
isCheckinPath: computed('router.url', function() {
|
||||
return get(this, 'router.url').split('/')[1] === 'checkin';
|
||||
}),
|
||||
|
||||
checkinNavClass: computed('isCheckinPath', function() {
|
||||
return `bottom-link ${get(this, 'isCheckinPath') ? 'active' : ''}`;
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user