Skip to content

Commit bed4dc0

Browse files
committed
reorganize hub token popup
1 parent 3ade4a7 commit bed4dc0

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

fastlane/metadata/android/en-US/changelogs/44.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
- Added padding between turnstile challenge and password field
55
- Made unlinking shockers also work when selecting multiple at once
66
- Creating a share code (per shocker shares page) now immediately shows a new share pop up just like invites do
7-
- Removed 'add existing share link' option from share tab as it's redundant with the button in settings and clutters up the ui
7+
- Removed 'add existing share link' option from share tab as it's redundant with the button in settings and clutters up the ui
8+
- Reorganized order of some buttons in dialogs
9+
- Fixed a few spelling mistakes

lib/screens/shockers/hub_item.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,6 @@ class HubItemState extends State<HubItem> {
231231
],
232232
),
233233
actions: [
234-
TextButton(
235-
onPressed: () {
236-
Navigator.of(context).pop();
237-
},
238-
child: Text("Cancel")),
239-
TextButton(
240-
onPressed: () => showCurrentToken(isCurrent: true),
241-
child: Text("Show current")),
242234
TextButton(
243235
onPressed: () async {
244236
LoadingDialog.show("Regenerating token");
@@ -274,7 +266,15 @@ class HubItemState extends State<HubItem> {
274266
});
275267
}
276268
},
277-
child: Text("Regenerate"))
269+
child: Text("Regenerate")),
270+
TextButton(
271+
onPressed: () => showCurrentToken(isCurrent: true),
272+
child: Text("Show current")),
273+
TextButton(
274+
onPressed: () {
275+
Navigator.of(context).pop();
276+
},
277+
child: Text("Cancel")),
278278
]);
279279
}));
280280
}
@@ -318,7 +318,7 @@ class HubItemState extends State<HubItem> {
318318
builder: (builder) => AlertDialog.adaptive(
319319
title: Text("Captive portal"),
320320
content: Text(
321-
"The captive portal is the website hosted on your hub itself. It's only available in your wifi ans is used for managing the wifi connection and account linking. Here you can enable or disable it."),
321+
"The captive portal is the website hosted on your hub itself. It's only available in your wifi and is used for managing the wifi connection and account linking. Here you can enable or disable it."),
322322
actions: [
323323
TextButton(
324324
onPressed: () {

0 commit comments

Comments
 (0)