Thanks, @riking. Simply adding that line, switching instances of Discourse.PostMenuView
to PostMenuView
and changing my file to .js.es6
did not solve the problem. Looking at discourse/views/post-menu
, it looks like PostMenuView
is no longer a thing? And now there’s a buttonForThing
function for each button type? It seems like @zogstrip’s post from above should be updated to reflect the way things work now post-ES6 because this plugin tutorial is no longer accurate.
3 Mi Piace