Converted hr card component to glimmer syntax

no issue

- switching to Ember "Octane" patterns
This commit is contained in:
Kevin Ansfield 2021-11-08 13:10:39 +00:00
parent 0b360c3383
commit 085ef1646c
2 changed files with 12 additions and 19 deletions

View File

@ -1,12 +1,12 @@
<KoenigCard
@class="kg-card-hover"
@isSelected={{this.isSelected}}
@isEditing={{this.isEditing}}
@selectCard={{action this.selectCard}}
@deselectCard={{action this.deselectCard}}
@editCard={{action this.editCard}}
@isSelected={{@isSelected}}
@isEditing={{@isEditing}}
@selectCard={{@selectCard}}
@deselectCard={{@deselectCard}}
@editCard={{@editCard}}
@hasEditMode={{false}}
@editor={{this.editor}}
@editor={{@editor}}
>
<hr>
</KoenigCard>

View File

@ -1,15 +1,8 @@
import Component from '@ember/component';
import Component from '@glimmer/component';
export default Component.extend({
tagName: '',
// closure actions
selectCard() {},
deselectCard() {},
registerComponent() {},
init() {
this._super(...arguments);
this.registerComponent(this);
export default class KoenigCardHrComponent extends Component {
constructor() {
super(...arguments);
this.args.registerComponent(this);
}
});
}