add change password
This commit is contained in:
		
							parent
							
								
									8cc44b06cf
								
							
						
					
					
						commit
						728bea60c2
					
				@ -234,6 +234,9 @@
 | 
			
		||||
    },
 | 
			
		||||
    "Избранные сообщения" : {
 | 
			
		||||
 | 
			
		||||
    },
 | 
			
		||||
    "Изменение пароля" : {
 | 
			
		||||
 | 
			
		||||
    },
 | 
			
		||||
    "Инвайт-код (необязательно)" : {
 | 
			
		||||
      "comment" : "Инвайт-код",
 | 
			
		||||
 | 
			
		||||
@ -58,6 +58,9 @@ struct ChangePasswordView: View {
 | 
			
		||||
                            .foregroundColor(isPasswordConfirmValid ? .green : .red)
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                
 | 
			
		||||
                
 | 
			
		||||
                
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            var isButtonEnabled: Bool {
 | 
			
		||||
@ -71,9 +74,16 @@ struct ChangePasswordView: View {
 | 
			
		||||
                print("confirmPassword: \(confirmPassword)")
 | 
			
		||||
            }) {
 | 
			
		||||
                Text(NSLocalizedString("Применить", comment: ""))
 | 
			
		||||
                    .foregroundColor(.white)
 | 
			
		||||
                    .padding()
 | 
			
		||||
                    .frame(maxWidth: .infinity)
 | 
			
		||||
                    .background(isButtonEnabled ? Color.blue : Color.gray)
 | 
			
		||||
                    .cornerRadius(8)
 | 
			
		||||
            }
 | 
			
		||||
            .disabled(!isButtonEnabled)
 | 
			
		||||
            .buttonStyle(PlainButtonStyle())
 | 
			
		||||
            .listRowInsets(EdgeInsets())
 | 
			
		||||
            .listRowBackground(Color.clear)
 | 
			
		||||
        }
 | 
			
		||||
        .navigationTitle(NSLocalizedString("Изменение пароля", comment: ""))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user