Hide page controls in libraries where unnecessary
This commit is contained in:
parent
efeb1c142e
commit
b18e2e3ae4
|
@ -285,6 +285,7 @@ struct LibraryView: View {
|
|||
.navigationTitle(extraParam == "" ? (library_names[prefill_id] ?? "Library") : title)
|
||||
.toolbar {
|
||||
ToolbarItemGroup(placement: .navigationBarTrailing) {
|
||||
if(totalItemCount > itemsPerPage) {
|
||||
if(firstItemIndex != 0) {
|
||||
Button {
|
||||
previousPage()
|
||||
|
@ -299,6 +300,7 @@ struct LibraryView: View {
|
|||
Image(systemName: "chevron.right")
|
||||
}
|
||||
}
|
||||
}
|
||||
NavigationLink(destination: LibrarySearchView(url: url, close: $closeSearch), isActive: $closeSearch) {
|
||||
Image(systemName: "magnifyingglass")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue