FIX: Badge granting recursion error (#20750)

Moving the `grantBadge` action out of the actions hash caused it to clash with a method of the same name from the GrantBadgeController mixin. This commit renames the action.
This commit is contained in:
David Taylor 2023-03-20 21:07:21 +00:00 committed by GitHub
parent c37dd63ac3
commit d5c7b9f8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ export default class AdminUserBadgesController extends Controller.extend(
}
@action
grantBadge() {
performGrantBadge() {
this.grantBadge(
this.selectedBadgeId,
this.get("user.username"),

View File

@ -34,7 +34,7 @@
</div>
<DButton
@class="btn-primary"
@action={{action "grantBadge"}}
@action={{this.performGrantBadge}}
@type="submit"
@label="admin.badges.grant"
/>