-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use track colors in session item
- Loading branch information
1 parent
024b04a
commit 31d1ac2
Showing
3 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import classic from 'ember-classic-decorator'; | ||
import { action } from '@ember/object'; | ||
import { classNames } from '@ember-decorators/component'; | ||
import Component from '@ember/component'; | ||
import Component from '@glimmer/component'; | ||
|
||
@classic | ||
@classNames('ui', 'segment') | ||
export default class SessionItem extends Component { | ||
hideImage = false; | ||
|
||
@action | ||
hideSpeakerImage() { | ||
this.toggleProperty('hideImage'); | ||
if (!this.session.speakers.length) { | ||
this.set('hideImage', false); | ||
this.hideImage = !this.hideImage; | ||
if (!this.args.session.speakers.length) { | ||
this.hideImage = false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters