mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 06:26:26 +00:00
fix(dayplan): the delete question asks inside the day dialog, and its buttons stay small
Deleting a day no longer stacks a second dialog over the reorder dialog. The dialog swaps its list for the question at the same size and in the same place; Cancel and Escape bring the list back with the focus on the row asked about. The foot is one row of normal sized buttons with the hint line above it, the undated day is labelled "Without date" in every language, and the dialog is a step wider so no label breaks. The list of what goes with a day is quieter: a cancelled stay tints its whole row, a day with nothing on it is one plain line. On the phone the add buttons are two pills under the scrolling list, and the confirm sheet moves a long label to its own row instead of breaking it.
This commit is contained in:
@@ -22,6 +22,18 @@ export interface ImpactLine {
|
||||
tone: ImpactTone
|
||||
}
|
||||
|
||||
/**
|
||||
* The delete question while it is open. The reorder dialog asks it in place of
|
||||
* its day list: which day, the title and the list, and the two ways out.
|
||||
*/
|
||||
export interface DayDeleteQuestion {
|
||||
dayId: number
|
||||
title: string
|
||||
lines: ImpactLine[]
|
||||
onCancel: () => void
|
||||
onConfirm: () => void
|
||||
}
|
||||
|
||||
/**
|
||||
* The question the list answers. Deleting a day cancels a stay cleanly, with
|
||||
* its booking and expense. Shortening a trip removes the stay through the day
|
||||
|
||||
Reference in New Issue
Block a user