Skip to content

Commit cf2726d

Browse files
committed
chore: Make footer notes in login page hyperlinks
1 parent 612a853 commit cf2726d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

FileBrowserClient/FileBrowserClient/ContentView.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,17 @@ struct ContentView: View {
107107

108108
// Footer
109109
VStack(spacing: 2) {
110-
Text("Server Version: \(fileListViewModel.serverVersion ?? "unknown")")
110+
Link(("Server Version: \(fileListViewModel.serverVersion)"),
111+
destination: URL(string: "https://github.com/filebrowser/filebrowser/releases/tag/\(fileListViewModel.serverVersion)")!)
111112
.font(.footnote)
112-
.foregroundColor(.secondary)
113-
Text("Client Version: \(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "unknown")")
113+
.foregroundColor(.blue)
114+
Link(("Client Version: \(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "unknown")"),
115+
destination: URL(string: "https://github.com/thevickypedia/Filebrowser-iOS")!)
114116
.font(.footnote)
115-
.foregroundColor(.secondary)
116-
// Text("© \(Calendar.current.component(.year, from: Date())) Vignesh Rao")
117-
Text("© 2025 Vignesh Rao")
117+
.foregroundColor(.blue)
118+
Link("© 2025 Vignesh Rao", destination: URL(string: "https://vigneshrao.com")!)
118119
.font(.footnote)
119-
.foregroundColor(.secondary)
120+
.foregroundColor(.blue)
120121
}
121122
.padding(.bottom, 8)
122123
}

FileBrowserClient/FileBrowserClient/FileListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FileListViewModel: ObservableObject {
1616

1717
var token: String?
1818
var serverURL: String?
19-
var serverVersion: String? = "v2.40.2"
19+
var serverVersion: String = "v2.40.2"
2020

2121
func configure(token: String, serverURL: String) {
2222
self.token = token

0 commit comments

Comments
 (0)