Skip to content

Commit 97db859

Browse files
committed
R2 - Changing to the right enum value in option
1 parent c0b878f commit 97db859

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/settings/settings.page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,8 @@ <h2>{{"REFRACTOMETER.AUTO_TEST" | translate}}</h2>
12461246
<ion-select (ngModelChange)="attemptRefractometerUpdate('test_type')" [(ngModel)]="settings.refractometer_test_type"
12471247
cancelText="{{'CANCEL'| translate }}" okText="{{'CHOOSE'| translate }}">
12481248
<div slot="label">{{"REFRACTOMETER.TEST_TYPE" | translate}}</div>
1249-
<ion-select-option value=0>{{"REFRACTOMETER.TEST_TYPES.SINGLE" | translate}}</ion-select-option>
1250-
<ion-select-option value=1>{{"REFRACTOMETER.TEST_TYPES.AVERAGE" | translate}}</ion-select-option>
1249+
<ion-select-option [value]="TEST_TYPE_ENUM.SINGLE">{{"REFRACTOMETER.TEST_TYPES.SINGLE" | translate}}</ion-select-option>
1250+
<ion-select-option [value]="TEST_TYPE_ENUM.AVERAGE">{{"REFRACTOMETER.TEST_TYPES.AVERAGE" | translate}}</ion-select-option>
12511251
</ion-select>
12521252
</ion-item>
12531253
<ion-item lines="none">

src/app/settings/settings.page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ import { FilePicker } from '@capawesome/capacitor-file-picker';
8080
import { AndroidNativeCalls } from '../../native/android-native-calls-plugin';
8181
import { BREW_GRAPH_TYPE } from '../../enums/brews/brewGraphType';
8282
import { BREW_DISPLAY_IMAGE_TYPE } from '../../enums/brews/brewDisplayImageType';
83+
import { TEST_TYPE_ENUM } from '../../enums/settings/refractometer';
8384

8485
@Component({
8586
selector: 'settings',
@@ -1562,4 +1563,5 @@ export class SettingsPage {
15621563

15631564
protected readonly BluetoothTypes = BluetoothTypes;
15641565
protected readonly BREW_DISPLAY_IMAGE_TYPE = BREW_DISPLAY_IMAGE_TYPE;
1566+
protected readonly TEST_TYPE_ENUM = TEST_TYPE_ENUM;
15651567
}

0 commit comments

Comments
 (0)