Skip to content

Commit b088bb0

Browse files
committed
hiding search box for now
1 parent 7a6ee67 commit b088bb0

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

app/controllers/admin/messages.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ sort_dir = 'ASC';
1010
get columns() {
1111
return [
1212
{
13-
name : this.l10n.t('Recipients'),
14-
valuePath : 'recipient',
13+
name : this.l10n.t('Recipients'),
14+
valuePath : 'recipient'
1515
},
1616
{
1717
name : this.l10n.t('Trigger'),
@@ -56,22 +56,22 @@ get columns() {
5656
}
5757

5858
@action
59-
save() {
60-
try {
61-
const systemMessages = this.model;
62-
systemMessages.forEach(systemMessage => {
63-
systemMessage.save();
59+
save() {
60+
try {
61+
const systemMessages = this.model;
62+
systemMessages.forEach(systemMessage => {
63+
systemMessage.save();
64+
});
65+
this.notify.success(this.l10n.t('Changes have been saved successfully'),
66+
{
67+
id: 'message_success'
68+
});
69+
} catch (e) {
70+
console.error('Error while saving system messages', e);
71+
this.notify.error(e.errors[0].detail,
72+
{
73+
id: 'change_error_message'
6474
});
65-
this.notify.success(this.l10n.t('Changes have been saved successfully'),
66-
{
67-
id: 'message_success'
68-
});
69-
} catch (e) {
70-
console.error('Error while saving system messages', e);
71-
this.notify.error(e.errors[0].detail,
72-
{
73-
id: 'change_error_message'
74-
});
75-
}
7675
}
7776
}
77+
}

app/routes/admin/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
88

99
async model(params) {
1010
let queryString = {
11-
'page[size]' : params.per_page || 100,
11+
'page[size]' : params.per_page || 100,
1212
'page[number]' : params.page || 1
1313
};
1414
queryString = this.applySortFilters(queryString, params);

0 commit comments

Comments
 (0)