Removed link to settings for admins in email error copy

This commit is contained in:
Peter Zimon 2019-11-26 13:38:43 +01:00
parent e866808193
commit 5674323d2a
3 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,10 @@
import ModalComponent from 'ghost-admin/components/modal-base';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency';
export default ModalComponent.extend({
session: service(),
errorMessage: null,
// Allowed actions

View File

@ -50,7 +50,11 @@
</div>
<div class="pa5 pt3 pb3 f7 bb b--whitegrey">
<p class="mb2 lh-copy">
{{#if this.session.user.isOwner}}
Email failed to send when publishing this post. Please <LinkTo @route="settings.labs">check your Mailgun configuration</LinkTo> if the error persists.
{{else}}
Email failed to send when publishing this post. Please check your Mailgun configuration if the error persists.
{{/if}}
</p>
<p class="ma0 pa0">
<table class="ma0" style="table-layout: fixed">

View File

@ -32,7 +32,11 @@
<button class="close" title="Close" {{on "click" this.closeModal}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
<div class="modal-body">
{{#if this.session.user.isOwner}}
<p>Your post has been published but the email failed to send. Please <LinkTo @route="settings.labs">check your Mailgun configuration</LinkTo> if the error persists.</p>
{{else}}
<p>Your post has been published but the email failed to send. Please check your Mailgun configuration if the error persists.</p>
{{/if}}
<p class="mb0">
<button type="button" class="gh-btn gh-btn-text regular" {{action (toggle "errorDetailsOpen" this)}}
data-test-toggle-error>