2015-09-16 07:01:08 -04:00
|
|
|
import { on } from "ember-addons/ember-computed-decorators";
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
export default Em.View.extend({
|
2015-03-03 10:17:07 -05:00
|
|
|
templateName: "poll",
|
2015-04-23 13:33:29 -04:00
|
|
|
classNames: ["poll"],
|
|
|
|
attributeBindings: ["data-poll-type", "data-poll-name", "data-poll-status"],
|
|
|
|
|
|
|
|
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"),
|
|
|
|
|
2015-09-16 07:01:08 -04:00
|
|
|
@on("didInsertElement")
|
|
|
|
_fixPollContainerHeight() {
|
2015-04-23 13:33:29 -04:00
|
|
|
const pollContainer = this.$(".poll-container");
|
|
|
|
pollContainer.height(pollContainer.height());
|
2015-09-16 07:01:08 -04:00
|
|
|
}
|
2015-03-03 10:17:07 -05:00
|
|
|
});
|