Skip to content

Commit

Permalink
feat: add subtitle when editing history entry
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopvlk committed Sep 12, 2024
1 parent fdbec04 commit a9c0c23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/medDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,13 @@ export default function openMedicationDialog(DosageWindow, list, position, mode)
medDialog.title = _('Edit entry');
saveButton.label = _('Save');
dosage.title = item.name;
dosage.subtitle = '';
dosage.subtitle = `${item.dose} ${item.unit}`;
medDialog.add_css_class('one-time');

doseRowOne.connect('output', row => {
dosage.subtitle = `${row.get_value()} ${item.unit}`;
});

takenButtons.set_visible(true);
medName.set_visible(false);
medUnit.set_visible(false);
Expand Down

0 comments on commit a9c0c23

Please sign in to comment.