MOBILE-3909 calendar: Save reminder when Enter clicked
parent
96adce9bec
commit
02c5734230
|
@ -11,7 +11,8 @@
|
|||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content>
|
||||
<ion-radio-group [(ngModel)]="radioValue" class="ion-text-wrap">
|
||||
<form (ngSubmit)="saveReminder()">
|
||||
<ion-radio-group name="radiovalue" [(ngModel)]="radioValue" class="ion-text-wrap">
|
||||
<!-- Preset options. -->
|
||||
<ion-item *ngIf="allowDisable">
|
||||
<ion-label>
|
||||
|
@ -38,8 +39,8 @@
|
|||
|
||||
<div class="flex-row">
|
||||
<!-- Input to enter the value. -->
|
||||
<ion-input type="number" name="customvalue" [(ngModel)]="customValue" [disabled]="radioValue != 'custom'" placeholder="10"
|
||||
(click)="customInputClicked($event)">
|
||||
<ion-input type="number" name="customvalue" [(ngModel)]="customValue" [disabled]="radioValue != 'custom'"
|
||||
placeholder="10" (click)="customInputClicked($event)">
|
||||
</ion-input>
|
||||
|
||||
<!-- Units. -->
|
||||
|
@ -54,7 +55,8 @@
|
|||
</ion-item>
|
||||
</ion-radio-group>
|
||||
|
||||
<ion-button class="ion-margin" expand="block" (click)="saveReminder()" [disabled]="radioValue == 'custom' && !customValue">
|
||||
<ion-button type="submit" class="ion-margin" expand="block" [disabled]="radioValue == 'custom' && !customValue">
|
||||
{{ 'core.done' | translate }}
|
||||
</ion-button>
|
||||
</form>
|
||||
</ion-content>
|
||||
|
|
Loading…
Reference in New Issue