-
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 (#4847)
- Loading branch information
1 parent
3cd3ad6
commit 57fdbcc
Showing
3 changed files
with
23 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
57fdbcc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: