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:
David Taylor 2023-03-23 13:36:03 +00:00 committed by GitHub
parent b81767c1b1
commit bee61d4faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 402 additions and 388 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
@openIfDraft={{action "openIfDraft"}}
@typed={{action "typed"}}
@cancelled={{action "cancelled"}}
@save={{action "save"}}
@save={{this.saveAction}}
>
<div class="grippie"></div>
@ -234,7 +234,7 @@
<div class="save-or-cancel">
<ComposerSaveButton
@action={{action "save"}}
@action={{this.saveAction}}
@icon={{this.saveIcon}}
@label={{this.saveLabel}}
@forwardEvent={{true}}