enable/disable mail protocol
This commit is contained in:
16
resources/assets/js/views/settings/settings.js
vendored
16
resources/assets/js/views/settings/settings.js
vendored
@ -30,5 +30,21 @@ const app = new Vue({
|
||||
form: new Form('setting'),
|
||||
bulk_action: new BulkAction('settings')
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
onProtocolChange(protocol) {
|
||||
if (protocol === 'smtp') {
|
||||
document.getElementById('smtp_host').disabled = false
|
||||
document.getElementById('smtp_port').disabled = false
|
||||
document.getElementById('smtp_username').disabled = false
|
||||
document.getElementById('smtp_password').disabled = false
|
||||
} else {
|
||||
document.getElementById('smtp_host').disabled = true
|
||||
document.getElementById('smtp_port').disabled = true
|
||||
document.getElementById('smtp_username').disabled = true
|
||||
document.getElementById('smtp_password').disabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user