Privacy: IS Settings: Factorise model flows so that the change action use both add and disconnect actions

This commit is contained in:
manuroe
2019-09-26 16:01:53 +02:00
parent a8e0fd74b4
commit f8929c3c44
3 changed files with 117 additions and 93 deletions

View File

@@ -184,6 +184,8 @@ final class SettingsIdentityServerViewController: UIViewController {
}
private func renderNoIdentityServer() {
self.activityPresenter.removeCurrentActivityIndicator(animated: true)
self.identityServerTextField.text = nil
self.messageLabel.text = VectorL10n.identityServerSettingsNoIsDescription
@@ -195,6 +197,8 @@ final class SettingsIdentityServerViewController: UIViewController {
}
private func renderIdentityServer(host: String) {
self.activityPresenter.removeCurrentActivityIndicator(animated: true)
self.identityServerTextField.text = host
self.messageLabel.text = VectorL10n.identityServerSettingsDescription(host.hostname())