Sort by strains and measurements
This commit is contained in:
		
							parent
							
								
									86b3fb46d7
								
							
						
					
					
						commit
						37becad20a
					
				
					 11 changed files with 95 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -26,11 +26,11 @@ export default DS.Model.extend({
 | 
			
		|||
  }),
 | 
			
		||||
  computedValue: Ember.computed('textMeasurementType', 'txtValue', 'numValue', function() {
 | 
			
		||||
    var val;
 | 
			
		||||
    if (this.get('computedType') == 'Fixed-text') {
 | 
			
		||||
    if (this.get('computedType') === 'Fixed-text') {
 | 
			
		||||
      val = this.get('textMeasurementType');
 | 
			
		||||
    } else if (this.get('computedType') == 'Free-text') {
 | 
			
		||||
    } else if (this.get('computedType') === 'Free-text') {
 | 
			
		||||
      val = this.get('txtValue');
 | 
			
		||||
    } else if (this.get('computedType') == 'Numerical') {
 | 
			
		||||
    } else if (this.get('computedType') === 'Numerical') {
 | 
			
		||||
      val = this.get('numValue');
 | 
			
		||||
      if (this.get('confidenceInterval')) {
 | 
			
		||||
        val = val + ' ± ' + this.get('confidenceInterval');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue