Skip to content
Snippets Groups Projects
Unverified Commit 0b2cec0b authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Show a warning if you are typing a message without a subject

parent 2cd5b26d
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,9 @@
@keyup="onInputChanged"
/>
</div>
<div v-if="noSubject" class="warning">
{{ t('mail', 'This mail does not have a subject yet.') }}
</div>
<div v-if="noReply" class="warning noreply-box">
{{ t('mail', 'Note that the mail came from a noreply address so your reply will probably not be read.') }}
</div>
......@@ -223,6 +226,9 @@ export default {
isReply() {
return !_.isUndefined(this.replyTo)
},
noSubject() {
return this.subjectVal === '' && this.bodyVal !== ''
},
},
beforeMount() {
if (this.fromAccount) {
......
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