discourse/plugins/poll/assets/javascripts/views/poll.js.es6
2016-06-08 16:19:13 +08:00

15 lines
508 B
JavaScript

import { on } from "ember-addons/ember-computed-decorators";
export default Em.View.extend({
templateName: "poll",
classNames: ["poll"],
attributeBindings: ["data-poll-type", "data-poll-name", "data-poll-status", "data-poll-public"],
poll: Em.computed.alias("controller.poll"),
"data-poll-type": Em.computed.alias("poll.type"),
"data-poll-name": Em.computed.alias("poll.name"),
"data-poll-status": Em.computed.alias("poll.status"),
"data-poll-public": Em.computed.alias("poll.public")
});