This commit is contained in:
spaced4ndy
2024-10-30 20:06:53 +04:00
parent 2d6d4a0ba7
commit bc93a26351
3 changed files with 3 additions and 10 deletions
@@ -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)
}