mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Initial PeerTube Support
This commit is contained in:
@@ -143,8 +143,8 @@ struct AccountForm: View {
|
||||
private var validator: AccountValidator {
|
||||
AccountValidator(
|
||||
app: .constant(instance.app),
|
||||
url: instance.apiURL,
|
||||
account: Account(instanceID: instance.id, url: instance.apiURL, username: username, password: password),
|
||||
url: instance.apiURLString,
|
||||
account: Account(instanceID: instance.id, urlString: instance.apiURLString, username: username, password: password),
|
||||
id: $username,
|
||||
isValid: $isValid,
|
||||
isValidated: $isValidated,
|
||||
|
@@ -100,7 +100,7 @@ struct LocationsSettings: View {
|
||||
@ViewBuilder var countryFooter: some View {
|
||||
if let account = accounts.current {
|
||||
let locationType = account.isPublic ? (account.country ?? "Unknown") : "Custom".localized()
|
||||
let description = account.isPublic ? account.url : account.instance?.description ?? "unknown".localized()
|
||||
let description = account.isPublic ? account.urlString : account.instance?.description ?? "unknown".localized()
|
||||
|
||||
Text("Current: \(locationType)\n\(description)")
|
||||
.foregroundColor(.secondary)
|
||||
|
Reference in New Issue
Block a user