Feature: Übung des Tages — personalisiert aus exercise_progress, 4. Chip auf Welcome — SW by-v481, APP_VER 458
This commit is contained in:
parent
7048499624
commit
d9a0be489b
4 changed files with 36 additions and 15 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '457'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '458'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
|
||||
const App = (() => {
|
||||
|
||||
|
|
|
|||
|
|
@ -346,6 +346,7 @@ window.Page_welcome = (() => {
|
|||
const diaryText = diaryDate ? (_relDate(diaryDate) || diaryDate) : '—';
|
||||
const weight = dashData?.last_weight;
|
||||
const weightVal = weight ? `${weight.wert} ${weight.einheit}` : '—';
|
||||
const ex = dashData?.daily_exercise;
|
||||
|
||||
return `
|
||||
<div class="wc-chips" id="wc-chips-row">
|
||||
|
|
@ -360,6 +361,12 @@ window.Page_welcome = (() => {
|
|||
<span class="wc-chip-label">Gewicht</span>
|
||||
<span class="wc-chip-val${weight ? '' : ' wc-chip-val--empty'}">${weightVal}</span>
|
||||
</div>
|
||||
${ex ? `
|
||||
<div class="wc-chip" data-nav="uebungen">
|
||||
<svg class="ph-icon wc-chip-icon" aria-hidden="true"><use href="/icons/phosphor.svg#target"></use></svg>
|
||||
<span class="wc-chip-label">Übung des Tages</span>
|
||||
<span class="wc-chip-val">${UI.escape(ex.name)}</span>
|
||||
</div>` : ''}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue