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:
parent
b2cd375936
commit
80f0876b51
7 changed files with 31 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue