Skip to content

Commit

Permalink
Improve DashboardView Empty View (#287)
Browse files Browse the repository at this point in the history
* Task 286 - Improve DashboardView completed
  • Loading branch information
ItsJakeMarcus committed Jul 26, 2024
1 parent e06cf85 commit 3a15c4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ struct DashboardView: View {
ProgressView("Loading...")
} else {
if viewModel.events.isEmpty {
Text("Add your first maintenance",
comment: "Placeholder text for empty maintenance list prompting the user to add a maintenance event") // swiftlint:disable:this line_length
ContentUnavailableView(
"Tap the + to begin",
systemImage: "wrench",
description: Text("Add your first maintenance")
)
} else if viewModel.searchedEvents.isEmpty && !viewModel.searchText.isEmpty {
ContentUnavailableView("No results",
systemImage: SFSymbol.magnifyingGlass,
Expand Down
3 changes: 3 additions & 0 deletions Basic-Car-Maintenance/Shared/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -4249,6 +4249,9 @@
}
}
}
},
"Tap the + to begin" : {

},
"Thanks for using this app!" : {
"comment" : "Thanks a user for using the app.",
Expand Down

0 comments on commit 3a15c4b

Please sign in to comment.