Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

DNN-29429: Fix SMTP Server Tab UI Issue 3.0.x #1124

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,35 +198,36 @@ class SmtpServer extends Component {
isGlobal={areGlobalSettings} />
</div>
}
<div className="tooltipAdjustment border-bottom">
{smtpSettingsVisible && credentialVisible &&
<div>
<EditBlock label={localization.get("plSMTPUsername")}
tooltip={localization.get("plSMTPUsername.Help")}
value={selectedSmtpSettings.smtpUserName}
isGlobal={areGlobalSettings}
onChange={this.onChangeField.bind(this, "smtpUserName")}
error={props.errors["smtpUserName"]} />

<EditBlock label={localization.get("plSMTPPassword")}
tooltip={localization.get("plSMTPPassword.Help")}
value={selectedSmtpSettings.smtpPassword}
isGlobal={areGlobalSettings}
type="password"
onChange={this.onChangeField.bind(this, "smtpPassword")}
error={props.errors["smtpPassword"]} />
</div>
}
{smtpSettingsVisible &&
<SwitchBlock label={localization.get("plSMTPEnableSSL")}
onText={localization.get("SwitchOn")}
offText={localization.get("SwitchOff")}
tooltip={localization.get("plSMTPEnableSSL.Help")}
value={selectedSmtpSettings.enableSmtpSsl}
onChange={this.onChangeSmtpEnableSsl.bind(this)}
isGlobal={areGlobalSettings} />
}
</div>
{smtpSettingsVisible && credentialVisible &&
<div className="tooltipAdjustment border-bottom">
<EditBlock label={localization.get("plSMTPUsername")}
tooltip={localization.get("plSMTPUsername.Help")}
value={selectedSmtpSettings.smtpUserName}
isGlobal={areGlobalSettings}
onChange={this.onChangeField.bind(this, "smtpUserName")}
error={props.errors["smtpUserName"]} />

<EditBlock label={localization.get("plSMTPPassword")}
tooltip={localization.get("plSMTPPassword.Help")}
value={selectedSmtpSettings.smtpPassword}
isGlobal={areGlobalSettings}
type="password"
onChange={this.onChangeField.bind(this, "smtpPassword")}
error={props.errors["smtpPassword"]} />
</div>
}
{smtpSettingsVisible &&
<div className="tooltipAdjustment border-bottom">
<SwitchBlock label={localization.get("plSMTPEnableSSL")}
onText={localization.get("SwitchOn")}
offText={localization.get("SwitchOff")}
tooltip={localization.get("plSMTPEnableSSL.Help")}
value={selectedSmtpSettings.enableSmtpSsl}
onChange={this.onChangeSmtpEnableSsl.bind(this)}
isGlobal={areGlobalSettings} />
</div>
}

{smtpSettingsVisible && areGlobalSettings &&
<EditBlock label={localization.get("plHostEmail")}
tooltip={localization.get("plHostEmail.Help")}
Expand Down