Skip to content
Snippets Groups Projects
Commit c6ec66f6 authored by GretaD's avatar GretaD
Browse files

disable send button when to, cc, bcc is empty


Signed-off-by: default avatarGretaD <gretadoci@gmail.com>
parent 50842d0b
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,7 @@
class="submit-message send primary icon-confirm-white"
type="submit"
:value="submitButtonTitle"
:disabled="!canSend"
@click="onSend"
/>
</div>
......@@ -292,6 +293,9 @@ export default {
noSubject() {
return this.subjectVal === '' && this.bodyVal !== ''
},
canSend() {
return this.selectTo.length > 0 || this.selectCc.length > 0 || this.selectBcc.length > 0
},
},
watch: {
selectedAlias(val) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment