# Overriding .gjs files - not possible?

**URL:** <https://meta.discourse.org/t/overriding-gjs-files-not-possible/281759>\
**Category:** Development\
**Created:** [October 10, 2023, 1:20pm UTC](https://meta.discourse.org/t/overriding-gjs-files-not-possible/281759 "2023-10-10T13:20:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Sören\_Geier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/s%C3%B6ren_geier/32/235234_2.png) [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Post date:** [October 10, 2023, 1:20pm UTC](https://meta.discourse.org/t/overriding-gjs-files-not-possible/281759/1 "2023-10-10T13:20:18Z")

</div>

Hello,

with a recent update one of our components broke. The component was previously extending the inline quote button which was quote-button.hbs. This file doesnt exist enymore - instead all the code was moved into a gjs file post-text-selection-toolbar.gjs and if I try to override it the “old way” the browser complains with the following message.

`component-templates.js:62 [discourse/theme-48/discourse/templates/components/post-text-selection-toolbar] post-text-selection-toolbar was authored using gjs and its template cannot be overridden. Ignoring override.`

Does that mean this piece of UI in Discourse can only be targeted by the defined PluginOutlets there?

```handlebars
  <PluginOutlet
                @name="quote-share-buttons-after"
                @connectorTagName="span"
              />

 <PluginOutlet @name="quote-button-after" @connectorTagName="div" />

```

What if I needed more control over the state of the buttons and the new ones added. I feel like this limits functionality.

Does anyone know how to handle that case?

---

_[View the full topic](https://meta.discourse.org/t/overriding-gjs-files-not-possible/281759)._
