mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Converted hr card component to glimmer syntax
no issue - switching to Ember "Octane" patterns
This commit is contained in:
parent
0b360c3383
commit
085ef1646c
@ -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>
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user