Removed test email function from Labs

no refs.
- removes leftover test email section from Labs to resolve a lot of confusion around it
This commit is contained in:
Peter Zimon 2020-05-20 11:34:56 +02:00
parent 66781a32ca
commit 4f2ed1bcec
2 changed files with 0 additions and 26 deletions

View File

@ -217,19 +217,6 @@ export default Controller.extend({
return RSVP.resolve();
},
sendTestEmail: task(function* () {
let notifications = this.notifications;
let emailUrl = this.get('ghostPaths.url').api('mail', 'test');
try {
yield this.ajax.post(emailUrl);
notifications.showAlert('Check your email for the test message.', {type: 'info', key: 'test-email.send.success'});
return true;
} catch (error) {
notifications.showAPIError(error, {key: 'test-email:send'});
}
}).drop(),
saveSettings: task(function* () {
return yield this.settings.save();
}).drop(),

View File

@ -213,19 +213,6 @@
</div>
</div>
<div class="gh-setting-header">Testing tools</div>
<div class="flex flex-column br3 shadow-1 bg-grouped-table pa5 mt2">
<div class="gh-setting-first gh-setting-last">
<div class="gh-setting-content">
<div class="gh-setting-title">Test email configuration</div>
<div class="gh-setting-desc">Send yourself a test email to make sure everything is working</div>
</div>
<div class="gh-setting-action">
<GhTaskButton @buttonText="Send" @successText="Sent" @task={{this.sendTestEmail}} @class="gh-btn gh-btn-hover-blue gh-btn-icon" />
</div>
</div>
</div>
</section>
</section>