mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-04 00:15:54 +02:00
Fix: Prevent JavaScript error if message is missing From
header (#209)
This commit is contained in:
parent
ef41de06ae
commit
d013158ac3
@ -293,7 +293,8 @@ export default {
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="message.ReturnPath && message.ReturnPath != message.From.Address" class="small">
|
<tr v-if="message.ReturnPath && message.From && message.ReturnPath != message.From.Address"
|
||||||
|
class="small">
|
||||||
<th class="text-nowrap">Return-Path</th>
|
<th class="text-nowrap">Return-Path</th>
|
||||||
<td class="privacy text-body-secondary text-break">
|
<td class="privacy text-body-secondary text-break">
|
||||||
<<a :href="searchURI(message.ReturnPath)" class="text-body-secondary">
|
<<a :href="searchURI(message.ReturnPath)" class="text-body-secondary">
|
||||||
|
@ -89,7 +89,7 @@ export default {
|
|||||||
<label class="col-sm-2 col-form-label text-body-secondary">From</label>
|
<label class="col-sm-2 col-form-label text-body-secondary">From</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<input type="text" aria-label="From address" readonly class="form-control-plaintext"
|
<input type="text" aria-label="From address" readonly class="form-control-plaintext"
|
||||||
:value="message.From.Address">
|
:value="message.From ? message.From.Address : ''">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -341,6 +341,6 @@ export default {
|
|||||||
|
|
||||||
<AboutMailpit modals />
|
<AboutMailpit modals />
|
||||||
<AjaxLoader :loading="loading" />
|
<AjaxLoader :loading="loading" />
|
||||||
<Release v-if="message" ref="ReleaseRef" :message="message" @delete="deleteMessage" />
|
<Release v-if="mailbox.uiConfig.MessageRelay && message" ref="ReleaseRef" :message="message" @delete="deleteMessage" />
|
||||||
<Screenshot v-if="message" ref="ScreenshotRef" :message="message" />
|
<Screenshot v-if="message" ref="ScreenshotRef" :message="message" />
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user