Rename to Mobile MA

This commit is contained in:
2026-04-10 10:08:30 +02:00
parent e19e6c9845
commit 12224db55e
4 changed files with 111 additions and 11 deletions
+14 -2
View File
@@ -21,6 +21,15 @@ struct LoginView: View {
var body: some View {
NavigationStack {
Form {
// Subtitle
Section {
Text("Let us connect to your Music Assistant instance")
.font(.subheadline)
.foregroundStyle(.secondary)
.listRowBackground(Color.clear)
.listRowInsets(EdgeInsets())
}
// Server URL Section
Section {
TextField("Server URL", text: $serverURL)
@@ -31,7 +40,10 @@ struct LoginView: View {
} header: {
Text("Server")
} footer: {
Text("Enter your Music Assistant server URL (e.g., https://music.example.com)")
VStack(alignment: .leading, spacing: 4) {
Text("Enter your Music Assistant server URL (e.g., https://music.example.com)")
Text("Using the Home Assistant add-on? The standard address is: http://homeassistant.local:8095")
}
}
// Token Section
@@ -98,7 +110,7 @@ struct LoginView: View {
.disabled(isLoading || !isFormValid)
}
}
.navigationTitle("Music Assistant")
.navigationTitle("Connect")
.alert("Connection Error", isPresented: $showError) {
Button("OK", role: .cancel) { }
} message: {