# Having a hard time overriding the save() function on the admin badge page

**URL:** <https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831>\
**Category:** Development\
**Created:** [January 8, 2024, 7:59am UTC](https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831 "2024-01-08T07:59:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [January 8, 2024, 10:59am UTC](https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831/2 "2024-01-08T10:59:34Z")

</div>

Hey @piffy. Unfortunately this is an incompatibility with JS ‘Native class syntax’, EmberObjects’s `reopen()` functionality, and the `@action` decorator (which technically, creates a native JS ‘getter’).

I’m afraid I don’t have an immediate suggestion to get this particular override working, but [we are working](https://github.com/discourse/discourse/pull/24957) on a more robust solution for the future.

Depending on what you’re trying to do, maybe hooking into the badge model’s “save” function could work?

> <https://github.com/discourse/discourse/blob/d9affeca0a2c1c89f90203051486a16cb5409f23/app/assets/javascripts/discourse/app/models/badge.js#L38>

---

_[View the full topic](https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831)._
