IDEA-216363 Additionally change username field label to "Email:" for JIRA Cloud

As, apparently, it's another common source of confusion.

GitOrigin-RevId: 77a50ebe65bf1ce5616be3bc0fd9ccf6cbc868bd
This commit is contained in:
Mikhail Golubev
2019-09-04 15:08:25 +00:00
committed by intellij-monorepo-bot
parent 7f4cf758d9
commit e338e40dd6
@@ -87,6 +87,13 @@ public class JiraRepositoryEditor extends BaseRepositoryEditor<JiraRepository> {
myNoteLabel.setVisible(true);
}
myPasswordLabel.setText(myRepository.isInCloud() ? "API Token:" : "Password:");
if (myRepository.isInCloud()) {
myUsernameLabel.setText("Email:");
myPasswordLabel.setText("API Token:");
}
else {
myUsernameLabel.setText("Username:");
myPasswordLabel.setText("Password:");
}
}
}