mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 07:37:56 +02:00
UI: Improve soft reset dialog, and always confirm soft resets (#809)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user