mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19: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:
parent
02102f9bf3
commit
f442081a41
42 changed files with 563 additions and 548 deletions
|
@ -10,16 +10,20 @@
|
|||
// https://documize.com
|
||||
|
||||
import { inject as service } from '@ember/service';
|
||||
import Notifier from '../../mixins/notifier';
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
export default Component.extend(Notifier, {
|
||||
appMeta: service(),
|
||||
buttonLabel: 'Rebuild Search Index',
|
||||
buttonLabel: 'Rebuild',
|
||||
|
||||
actions: {
|
||||
reindex() {
|
||||
this.set('buttonLabel', 'Rebuilding search index...')
|
||||
this.get('reindex')();
|
||||
this.set('buttonLabel', 'Running...');
|
||||
this.notifyInfo("Starting search re-index process");
|
||||
this.get('reindex')(() => {
|
||||
this.notifySuccess("Search re-indexing complete");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,6 +76,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
this.set('deleteSpace.id', '');
|
||||
this.set('deleteSpace.name', '');
|
||||
this.loadData();
|
||||
this.notifySuccess('Deleted');
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -86,6 +87,8 @@ export default Component.extend(Notifier, Modals, {
|
|||
filterType: 'space',
|
||||
};
|
||||
|
||||
this.notifyInfo('Export running...');
|
||||
|
||||
this.get('documentSvc').export(spec).then((htmlExport) => {
|
||||
this.get('browserSvc').downloadFile(htmlExport, 'documize.html');
|
||||
this.notifySuccess('Exported');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue