Merge pull request #8288 from mkllnk/pending-changes

Translate "Save Changes"
This commit is contained in:
Andy Brett
2021-10-06 08:06:48 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -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) ->

View File

@@ -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' }