Work for me!
2018-4-29
Glad it worked, but It is always better to post code than pictures of code.
Thanks for reply
original post have all these code,
it’s not necessary for me to post code again.
The purpose of these picture is to show it work, give viewer a big picture view
(not for viewer to copy&paste)
(code in code editor have nicer code highlight)
If anyone runs into a testing error, I had to add id="show-tentacle" to the button component to get the tests to pass in part 6 of the tutorial:
<div class="buttons">
{{d-button label="purple_tentacle.show" action="showTentacle" icon="eye" id="show-tentacle"}}
</div>
I found the Ember routing didn’t work until I commented out path: '/plugins' in the route-map file:
export default {
resource: 'admin.adminPlugins',
// path: '/plugins',
map () {
this.route('watch-mute')
}
}
For some reason Ember was expecting a route at adminPlugins/watch-mute not at adminPlugins/plugins/watch-mute. Is this something I did wrong upstream in the routing call chain, or has something changed in the way Discourse/Ember handles these?
顺便提一下,链接的 discourse-akismet 插件没有那个管理界面/标签页/代码。好消息是,另一个插件 GitHub - discourse/discourse-data-explorer: SQL Queries for admins in Discourse · GitHub 确实有。
11 个帖子已拆分为新主题:点击按钮时如何执行服务器端代码?
您好,我只是想说我在第 116 行的文档中发现了一个错误。
我已提交一个拉取请求。




