UI: Improve soft reset dialog, and always confirm soft resets (#809)

This commit is contained in:
missymae#2783
2023-09-17 14:30:10 -06:00
committed by GitHub
parent b9d13063ac
commit e1d2e12747
6 changed files with 24 additions and 12 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function travel(to: CityName): void {
Player.loseMoney(cost, "other");
Player.travel(to);
dialogBoxCreate(`You are now in ${to}!`);
if (!Settings.SuppressTravelConfirmation) dialogBoxCreate(`You are now in ${to}!`);
Router.toPage(Page.City);
}
@@ -29,6 +29,7 @@ export function TravelConfirmationModal(props: IProps): React.ReactElement {
<Button onClick={travel}>
<Typography>Travel</Typography>
</Button>
<Button onClick={() => props.onClose()}>Cancel</Button>
</Modal>
);
}