DEV: Convert composer controller to native class syntax (#20723)
Actions are moved from actions: {} to top-level functions with @action decorator. Previously we had a save() action and a top-level function of the same name, so this commit renames the action to avoid a clash.
This commit is contained in:
parent
b81767c1b1
commit
bee61d4faf
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@
|
||||||
@openIfDraft={{action "openIfDraft"}}
|
@openIfDraft={{action "openIfDraft"}}
|
||||||
@typed={{action "typed"}}
|
@typed={{action "typed"}}
|
||||||
@cancelled={{action "cancelled"}}
|
@cancelled={{action "cancelled"}}
|
||||||
@save={{action "save"}}
|
@save={{this.saveAction}}
|
||||||
>
|
>
|
||||||
<div class="grippie"></div>
|
<div class="grippie"></div>
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
|
|
||||||
<div class="save-or-cancel">
|
<div class="save-or-cancel">
|
||||||
<ComposerSaveButton
|
<ComposerSaveButton
|
||||||
@action={{action "save"}}
|
@action={{this.saveAction}}
|
||||||
@icon={{this.saveIcon}}
|
@icon={{this.saveIcon}}
|
||||||
@label={{this.saveLabel}}
|
@label={{this.saveLabel}}
|
||||||
@forwardEvent={{true}}
|
@forwardEvent={{true}}
|
||||||
|
|
Loading…
Reference in New Issue