Don't display 'edit' option for number/date/boolean groups in list facet

This commit is contained in:
Owen Stephens 2018-06-28 07:21:17 +01:00
parent acea8e5671
commit 62971b3804

View File

@ -417,18 +417,23 @@ ListFacet.prototype._update = function(resetScroll) {
renderChoice(i, choices[i]); renderChoice(i, choices[i]);
} }
if (this._numberChoice !== null) { if (this._numberChoice !== null) {
renderEdit = false;
renderChoice(-5, this._numberChoice, "(number)"); renderChoice(-5, this._numberChoice, "(number)");
} }
if (this._datetimeChoice !== null) { if (this._datetimeChoice !== null) {
renderEdit = false;
renderChoice(-4, this._datetimeChoice, "(date)"); renderChoice(-4, this._datetimeChoice, "(date)");
} }
if (this._booleanChoice !== null) { if (this._booleanChoice !== null) {
renderEdit = false;
renderChoice(-3, this._booleanChoice, "(boolean)"); renderChoice(-3, this._booleanChoice, "(boolean)");
} }
if (this._blankChoice !== null) { if (this._blankChoice !== null) {
renderEdit = false;
renderChoice(-1, this._blankChoice, "(blank)"); renderChoice(-1, this._blankChoice, "(blank)");
} }
if (this._errorChoice !== null) { if (this._errorChoice !== null) {
renderEdit = false;
renderChoice(-2, this._errorChoice, "(error)"); renderChoice(-2, this._errorChoice, "(error)");
} }