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