É possível passar parâmetros para a API que cria Links da Comunidade?

Ah, e como existe uma condição typeof args === "function", você poderia fazer algo assim imediatamente:

api.addCommunitySectionLink((Base) =">
  class CustomLink extends Base {
    get name() {
      return "intersection-navigator";
    }

    get route() {
      return "tag.show";
    }

    get models() {
      return ["tagid"];
    }

    get title() {
      return I18n.t("tag_intersection_navigator.link.title");
    }

    get text() {
      return I18n.t("tag_intersection_navigator.link.text");
    }

  }
);
1 curtida