Port component to native class
This commit is contained in:
@@ -1,18 +1,14 @@
|
|||||||
import Component from '@ember/component';
|
import Component from '@glimmer/component';
|
||||||
|
import { action } from '@ember/object';
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
|
|
||||||
export default Component.extend({
|
export default class ContributorComponent extends Component {
|
||||||
tagName: '',
|
@service router;
|
||||||
|
|
||||||
router: service(),
|
selectedContributorId = null;
|
||||||
|
|
||||||
selectedContributorId: null,
|
|
||||||
|
|
||||||
actions: {
|
|
||||||
|
|
||||||
openContributorDetails(contributor) {
|
|
||||||
this.router.transitionTo('dashboard.contributors.show', contributor);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@action
|
||||||
|
openContributorDetails(contributor) {
|
||||||
|
this.router.transitionTo('dashboard.contributors.show', contributor);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user