New Topic button hidden text

We didn’t actually have a great way to get this text back on mobile, so I just added one: DEV: add create-topic-label value transformer by awesomerobot · Pull Request #32621 · discourse/discourse · GitHub — you’ll get this the next time Discourse is updated..

This change will allow you to override our default behavior in an initializer file in a remote theme, or via the admin panel within the admin/customize/themes code editor’s JS tab:

import { apiInitializer } from "discourse/lib/api";

export default apiInitializer((api) => {

  api.registerValueTransformer("create-topic-label", ({ value, context }) => {
    return context.defaultKey;
  });

});

:backhand_index_pointing_up: this will override our default mobile/desktop switch with the label, so it will appear in both places:

3 Likes