mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Allow import of accounts to manually added (not imported) instances
This commit is contained in:
@@ -62,7 +62,7 @@ struct ImportSettingsAccountRow: View {
|
||||
}
|
||||
} else {
|
||||
Group {
|
||||
if InstancesModel.shared.find(instanceID) != nil {
|
||||
if InstancesModel.shared.find(instanceID) != nil || InstancesModel.shared.findByURLString(account.urlString) != nil {
|
||||
HStack {
|
||||
Image(systemName: "checkmark.circle.fill")
|
||||
.foregroundColor(.green)
|
||||
|
@@ -42,7 +42,7 @@ final class ImportSettingsSheetViewModel: ObservableObject {
|
||||
|
||||
return ((account.password != nil && !account.password!.isEmpty) ||
|
||||
importableAccounts.contains(account.id)) && (
|
||||
(InstancesModel.shared.find(instanceID) != nil) ||
|
||||
(InstancesModel.shared.find(instanceID) != nil || InstancesModel.shared.findByURLString(account.urlString) != nil) ||
|
||||
selectedInstances.contains(instanceID)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user