There are two special buttons in discourse/app/assets/javascripts/discourse/views/topic-footer-buttons.js.es6
: topic-notifications-button
and invite-reply-button
.
I am exploring the possibility of moving these buttons to an area in the first post, probably a widget attached to the post or the post-menu. I am struggling though with how to do this.
One thought I had was to get extend or reopen the ContainerView
in my plugin:
const ContainerView = api.container.lookupFactory('view:container');
ContainerView.reopen({
//code in here that would at least recreate putting these buttons on the page
However, I can’t 1) Even recreate the logic in my plugin to show these buttons elsewhere and 2) think how to move the logic else where.
Does anyone have any suggestions?