1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

Show admins incomplete config indicator

SMTP checks to start with.
This commit is contained in:
sauls8t 2019-06-19 13:39:36 +01:00
parent b2cd375936
commit 80f0876b51
7 changed files with 31 additions and 4 deletions

View file

@ -11,10 +11,12 @@
import $ from 'jquery';
import { empty } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import Notifier from '../../mixins/notifier';
import Component from '@ember/component';
export default Component.extend(Notifier, {
appMeta: service(),
SMTPHostEmptyError: empty('model.smtp.host'),
SMTPPortEmptyError: empty('model.smtp.port'),
SMTPSenderEmptyError: empty('model.smtp.sender'),
@ -55,6 +57,8 @@ export default Component.extend(Notifier, {
this.set('buttonText', 'Save & Test');
this.set('testSMTP', result);
this.set('appMeta.configured', true);
if (result.success) {
this.notifySuccess(result.message);
} else {