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
|
@action
|
||||||
grantBadge() {
|
performGrantBadge() {
|
||||||
this.grantBadge(
|
this.grantBadge(
|
||||||
this.selectedBadgeId,
|
this.selectedBadgeId,
|
||||||
this.get("user.username"),
|
this.get("user.username"),
|
||||||
|
|
|
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue