summaryrefslogtreecommitdiff
path: root/Jel/Views/ContentView.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-02-21 21:30:59 -0500
committerShav Kinderlehrer <[email protected]>2024-02-21 21:30:59 -0500
commit1ce620567c64c92872261317863695c4660acbd0 (patch)
tree212f935b3759b76097bdeb8f27923a7137945b50 /Jel/Views/ContentView.swift
parent2619848a70d1c1cf366a288dcb889103b7464f1c (diff)
downloadjel-1ce620567c64c92872261317863695c4660acbd0.tar.gz
jel-1ce620567c64c92872261317863695c4660acbd0.zip
AddServerView autofills with last server
Diffstat (limited to 'Jel/Views/ContentView.swift')
-rw-r--r--Jel/Views/ContentView.swift27
1 files changed, 17 insertions, 10 deletions
diff --git a/Jel/Views/ContentView.swift b/Jel/Views/ContentView.swift
index 3983392..203bbaa 100644
--- a/Jel/Views/ContentView.swift
+++ b/Jel/Views/ContentView.swift
@@ -13,22 +13,29 @@ struct ContentView: View {
@State var isSignedIn: Bool = true
var body: some View {
- VStack {
+ VStack() {
if isSignedIn {
NavigationStack {
DashboardView()
}
} else {
- VStack {
- Text("You are not currently signed into a Jellyfin instance.")
- .padding()
- Button {
- // toggle logged in so that it invalidates isSignedIn
- authState.loggedIn = true
- authState.loggedIn = false
- } label: {
- Text("Sign in")
+ HStack {
+ Spacer()
+ VStack(alignment: .center) {
+ Spacer()
+ Text("You are not currently signed into a Jellyfin instance.")
+ .multilineTextAlignment(.center)
+ .padding()
+ Button {
+ // toggle logged in so that it invalidates isSignedIn
+ authState.loggedIn = true
+ authState.loggedIn = false
+ } label: {
+ Text("Sign in")
+ }
+ Spacer()
}
+ Spacer()
}
}
}