mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-24 21:45:38 +00:00
wip
This commit is contained in:
@@ -40,8 +40,6 @@ struct AllServersView: View {
|
||||
}
|
||||
|
||||
Section {
|
||||
Button("Reset") {}
|
||||
.disabled(true)
|
||||
Button("Save") {}
|
||||
.disabled(true)
|
||||
}
|
||||
|
||||
@@ -129,8 +129,10 @@ struct NetworkAndServers: View {
|
||||
Image(srvOperator.info.logo)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.grayscale(srvOperator.enabled ? 0.0 : 1.0)
|
||||
.frame(width: 24, height: 24)
|
||||
Text(srvOperator.name)
|
||||
.foregroundColor(srvOperator.enabled ? theme.colors.onBackground : theme.colors.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,14 +58,6 @@ struct OperatorView: View {
|
||||
}
|
||||
|
||||
Section {
|
||||
Button("Reset") {
|
||||
smpServers = currSMPServers
|
||||
xftpServers = currXFTPServers
|
||||
}
|
||||
.disabled(
|
||||
Set(smpServers) == Set(currSMPServers) &&
|
||||
Set(xftpServers) == Set(currXFTPServers)
|
||||
)
|
||||
if serverOperatorToEdit.enabled {
|
||||
Button("Test servers") {}
|
||||
}
|
||||
@@ -104,6 +96,7 @@ struct OperatorView: View {
|
||||
Image(serverOperator.info.logo)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.grayscale(serverOperatorToEdit.enabled ? 0.0 : 1.0)
|
||||
.frame(width: 24, height: 24)
|
||||
Text(serverOperator.name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user