Fixes in the UI.
This commit is contained in:
parent
19fe5331d2
commit
4d50432973
2 changed files with 8 additions and 2 deletions
|
@ -224,7 +224,7 @@ export default class CUD extends Component {
|
|||
namespace: mailtrainConfig.user.namespace,
|
||||
|
||||
click_tracking_disabled: false,
|
||||
open_trackings_disabled: false,
|
||||
open_tracking_disabled: false,
|
||||
|
||||
unsubscribe_url: '',
|
||||
|
||||
|
@ -718,7 +718,7 @@ export default class CUD extends Component {
|
|||
|
||||
<hr/>
|
||||
|
||||
<CheckBox id="open_trackings_disabled" text={t('disableOpenedTracking')}/>
|
||||
<CheckBox id="open_tracking_disabled" text={t('disableOpenedTracking')}/>
|
||||
<CheckBox id="click_tracking_disabled" text={t('disableClickedTracking')}/>
|
||||
|
||||
{sourceEdit && <hr/> }
|
||||
|
|
|
@ -74,6 +74,12 @@ export default class CUD extends Component {
|
|||
state.setIn(['username', 'error'], null);
|
||||
}
|
||||
|
||||
if (!state.getIn(['role', 'value'])) {
|
||||
state.setIn(['role', 'error'], t('Role must be selected'));
|
||||
} else {
|
||||
state.setIn(['role', 'error'], null);
|
||||
}
|
||||
|
||||
|
||||
if (mailtrainConfig.isAuthMethodLocal) {
|
||||
const email = state.getIn(['email', 'value']);
|
||||
|
|
Loading…
Reference in a new issue