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

Redesign setting screens

We're using iconography to stylize each setting screen.

Imeplemented new color palletes and shades.
This commit is contained in:
McMatts 2018-12-13 12:24:16 +00:00
parent 02102f9bf3
commit f442081a41
42 changed files with 563 additions and 548 deletions

View file

@ -24,7 +24,7 @@ export default Component.extend(Notifier, {
testSMTP: null,
actions: {
saveSMTP() {
saveSMTP(e) {
if (this.get('SMTPHostEmptyError')) {
$("#smtp-host").focus();
return;
@ -49,11 +49,17 @@ export default Component.extend(Notifier, {
);
this.set('buttonText', 'Please wait...');
this.notifyInfo('Sending test email to you');
this.get('saveSMTP')().then((result) => {
this.notifySuccess('Saved');
this.set('buttonText', 'Save & Test');
this.set('testSMTP', result);
if (result.success) {
this.notifySuccess(result.message);
} else {
this.notifyError(result.message);
}
});
}
}