Skip to content

Commit d4798bd

Browse files
committed
Fix a deprecation warning during ember build
There is no usage of `sendAction` in the component, so I believe no futher changes are needed there. DEPRECATION: Passing actions to components as strings (like `<Input @Enter="saveToken" />`) is deprecated. Please use closure actions instead (`<Input @Enter={{action "saveToken"}} />`). ('cargo/templates/components/api-token-row.hbs' @ L4:C6) [deprecation id: ember-component.send-action] See https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action for more details.
1 parent e218804 commit d4798bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/components/api-token-row.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@disabled={{this.api_token.isSaving}}
88
@value={{this.api_token.name}}
99
@autofocus="autofocus"
10-
@enter="saveToken"
10+
@enter={{action "saveToken"}}
1111
data-test-focused-input
1212
/>
1313
{{else}}

0 commit comments

Comments
 (0)