Add "inclusive" definition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user