mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-07-18 11:39:58 +08:00
16 lines
442 B
JavaScript
16 lines
442 B
JavaScript
export default {
|
|
votedPath(){
|
|
return "foobar";
|
|
},
|
|
setupComponent(args, component) {
|
|
const filterMode = args.filterMode;
|
|
// no endsWith in IE
|
|
if (filterMode && filterMode.indexOf("votes", filterMode.length - 5) !== -1) {
|
|
component.set("classNames", ["active"]);
|
|
}
|
|
},
|
|
shouldRender(args, component) {
|
|
const category = component.get("category");
|
|
return !!(category && category.get("can_vote"));
|
|
}
|
|
};
|