mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 22:44:08 +08:00
13 lines
446 B
JavaScript
13 lines
446 B
JavaScript
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")
|
|
});
|