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:
parent
c37dd63ac3
commit
d5c7b9f8df
|
@ -69,7 +69,7 @@ export default class AdminUserBadgesController extends Controller.extend(
|
|||
}
|
||||
|
||||
@action
|
||||
grantBadge() {
|
||||
performGrantBadge() {
|
||||
this.grantBadge(
|
||||
this.selectedBadgeId,
|
||||
this.get("user.username"),
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
</div>
|
||||
<DButton
|
||||
@class="btn-primary"
|
||||
@action={{action "grantBadge"}}
|
||||
@action={{this.performGrantBadge}}
|
||||
@type="submit"
|
||||
@label="admin.badges.grant"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue