새 주제 버튼 텍스트 사용자 지정

Thanks for these updates @awesomerobot!

I noticed that using this component changes the ID of the create topic button (from create-topic to custom-create-topic) which undoes the Colorful Categories customized background.

Maybe the ID should stay the same, with the custom identifier moved to a class instead?

1개의 좋아요

I try to do some modification on this component for my personal use. But i am stuck on something so maybe someone is knowing this.

If i implement it to have the orignal “New Topic” - Button and the Custom new one.
Is there a posibillity to have the composer_action_text and the composer_button_text only on that modal when i click the custom button and having everything orginal when clicking on the original button “new topic”.

Hope someone may can help. Thanks!

If something of my stuff is not understandable then please tell me.

I’m getting a deprecation notice on this component:

[THEME 41 'Customize new topic button text'] 
Deprecation notice: `api.addPostMenuButton` has been deprecated. 
Use the value transformer `post-menu-buttons` instead. 
[deprecated since Discourse v3.4.0.beta3-dev] 
[deprecation id: discourse.post-menu-widget-overrides] 
[info: https://meta.discourse.org/t/341014]
1개의 좋아요

Hmm… it uses the updated Value Transformer, not the deprecated API.

Check if the component is up to date.

I can see on your forum you’re using Discourse v3.5.0.beta1-dev and you’re using an old component version. Once you update, this will fix your issue.

1개의 좋아요

Thanks and apologies: I had a pre-repo (or at least unlinked) component installed, so no update was showing!

2개의 좋아요

I tested the plugin, but I have both the new button and the old one! For your information, I am up to date.

image

2개의 좋아요

Yeah, I noticed that too, but as it wasn’t required any more just removed it.

The CSS to hide the old button must have gone awry.

2개의 좋아요

I have created a PR to fix the issue and also add the newer button formatting i guess that’s for new foundation only:

https://github.com/discourse/discourse-customize-new-topic-button-text/pull/62

edit: thank you for the review and button format revert @awesomerobot

7개의 좋아요

Great, it works, thanks @Lilly :+1:

3개의 좋아요