From 085ef1646ca6a3da064377ec5858f57306170859 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 8 Nov 2021 13:10:39 +0000 Subject: [PATCH] Converted hr card component to glimmer syntax no issue - switching to Ember "Octane" patterns --- .../addon/components/koenig-card-hr.hbs | 12 ++++++------ .../addon/components/koenig-card-hr.js | 19 ++++++------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.hbs b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.hbs index e5d53512d1..b126f9fe2c 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.hbs +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.hbs @@ -1,12 +1,12 @@
\ No newline at end of file diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js index 24566a35d9..832c1665fb 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-hr.js @@ -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); } -}); +}