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 @action
grantBadge() { performGrantBadge() {
this.grantBadge( this.grantBadge(
this.selectedBadgeId, this.selectedBadgeId,
this.get("user.username"), this.get("user.username"),

View File

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