diff --git a/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee b/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee index 08a495e119..69373cc7e9 100644 --- a/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee +++ b/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee @@ -31,6 +31,8 @@ angular.module("admin.indexUtils").factory "pendingChanges", ($q, resources, Sta form.$setPristine() if form? else StatusMessage.display('failure', t('js.oh_no')) + .catch -> + StatusMessage.display('failure', t('js.oh_no')) all submit: (change) -> diff --git a/app/views/admin/customers/index.html.haml b/app/views/admin/customers/index.html.haml index 4471f971f2..877e9a1d91 100644 --- a/app/views/admin/customers/index.html.haml +++ b/app/views/admin/customers/index.html.haml @@ -46,7 +46,7 @@ .row.margin-bottom-50{ ng: { show: "!RequestMonitor.loading && filteredCustomers.length > 0" } } %form{ name: "customers_form" } %save-bar{ dirty: "customers_form.$dirty", persist: "false" } - %input.red{ type: "button", value: "Save Changes", ng: { click: "submitAll(customers_form)" } } + %input.red{ type: "button", value: t(:save_changes), ng: { click: "submitAll(customers_form)" } } %table.index#customers %col.email{ width: "20%", 'ng-show' => 'columns.email.visible' }