Revert "FIX: Set default value for poll result field (#10044)"
This reverts commit 40de535224
.
Sadly this appears to break the JS test suite
This commit is contained in:
parent
556f7dc9c0
commit
9075d5a9f5
|
@ -350,7 +350,6 @@ export default Controller.extend({
|
||||||
pollStep: 1,
|
pollStep: 1,
|
||||||
autoClose: false,
|
autoClose: false,
|
||||||
chartType: BAR_CHART_TYPE,
|
chartType: BAR_CHART_TYPE,
|
||||||
pollResult: this.alwaysPollResult,
|
|
||||||
pollGroups: null,
|
pollGroups: null,
|
||||||
date: moment()
|
date: moment()
|
||||||
.add(1, "day")
|
.add(1, "day")
|
||||||
|
|
|
@ -320,11 +320,6 @@ test("staff_only option is not present for non-staff", function(assert) {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("poll result is always by default", function(assert) {
|
|
||||||
const controller = this.subject();
|
|
||||||
assert.equal(controller.pollResult, "always");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("staff_only option is present for staff", function(assert) {
|
test("staff_only option is present for staff", function(assert) {
|
||||||
const controller = this.subject();
|
const controller = this.subject();
|
||||||
controller.currentUser = { staff: true };
|
controller.currentUser = { staff: true };
|
||||||
|
|
Loading…
Reference in New Issue