Add "inclusive" definition

This commit is contained in:
Pablo Bañales
2018-12-03 11:34:14 -03:00
parent 5aca87b205
commit f71be3a9a1
3 changed files with 4 additions and 2 deletions
@@ -15,8 +15,8 @@ export default Component.extend({
filter_text: Ember.computed('{lower_bound,upper_bound,display_addition,inclusive}', function () {
var lower_limit, upper_limit, range, isInclusive;
isInclusive = this.get('inclusive');
lower_limit = this.get('lower_bound') || '-';
upper_limit = this.get('upper_bound') || '-';
lower_limit = this.get('lower_bound') || 'a';
upper_limit = this.get('upper_bound') || 'b';
range = isInclusive ? `[${lower_limit}, ${upper_limit}]` : `(${lower_limit}, ${upper_limit})`;
if (this.get('display_addition')) {
range += " " + this.get('display_addition');
@@ -14,6 +14,7 @@ ui-dropdown class='left basic labeled top left pointing icon select-number' acti
.ui.pointing.red.basic.label {{error}}
.item
ui-checkbox class='item' checked=inclusive label=(t 'number.range.inclusive') onChange=(action 'toggle_inclusive')
ui-popup tagName="i" class="info circle icon" html=(t 'number.range.inclusive_explanation')
.divider
.options-container