mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 05:32:54 -04:00
Renamed Refresh button to Submit
This commit is contained in:
parent
bf67475107
commit
69fc10c6f2
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ struct ContentView: View {
|
||||||
TextField("e.g. ASD", text: $stationCode)
|
TextField("e.g. ASD", text: $stationCode)
|
||||||
.frame(width: 100)
|
.frame(width: 100)
|
||||||
|
|
||||||
Button("Refresh") {
|
Button("Submit") {
|
||||||
Task {
|
Task {
|
||||||
await loadTrainStatus(forStationCode: normalizedStationCode)
|
await loadTrainStatus(forStationCode: normalizedStationCode)
|
||||||
}
|
}
|
||||||
|
|
@ -61,8 +61,8 @@ struct ContentView: View {
|
||||||
TableColumn("From", value: \TrainStatusRow.destination)
|
TableColumn("From", value: \TrainStatusRow.destination)
|
||||||
TableColumn("Status", value: \TrainStatusRow.status)
|
TableColumn("Status", value: \TrainStatusRow.status)
|
||||||
TableColumn("Track", value: \TrainStatusRow.platform)
|
TableColumn("Track", value: \TrainStatusRow.platform)
|
||||||
|
}.frame(minWidth: 600)
|
||||||
}.overlay(alignment: .bottomTrailing) {
|
.overlay(alignment: .bottomTrailing) {
|
||||||
if isLoading {
|
if isLoading {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
.frame(alignment: .topTrailing)
|
.frame(alignment: .topTrailing)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue