Ver código fonte

[update]

家族情報編集画面で生年月日が入力されていないと年齢が表示されないメッセージに更新
poohr 3 semanas atrás
pai
commit
c102b31eb9

+ 1
- 6
src/app/pages/family-edit/family-edit.html Ver arquivo

@@ -86,12 +86,7 @@
86 86
               <div class="form-row">
87 87
                 <label for="age">年齢</label>
88 88
                 <div class="form-field">
89
-                  <input
90
-                    id="age"
91
-                    type="text"
92
-                    [value]="getAgeText()"
93
-                    readonly
94
-                  />
89
+                  <input id="age" type="text" [value]="getAgeText()" readonly/>
95 90
                 </div>
96 91
               </div>
97 92
 

+ 1
- 1
src/app/pages/family-edit/family-edit.ts Ver arquivo

@@ -62,7 +62,7 @@ export class FamilyEdit {
62 62
   getAgeText() {
63 63
     const birthDate = this.familyForm.get('birthDate')?.value;
64 64
     if (!birthDate) {
65
-      return;
65
+      return "生年月日を入力すると自動計算されます";
66 66
     }
67 67
     const birth = new Date(birthDate);
68 68
     const today = new Date();

Carregando…
Cancelar
Salvar