mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
Using new syntax for save-bar on customers page
This commit is contained in:
@@ -16,7 +16,7 @@ angular.module("admin.indexUtils").factory "pendingChanges", ($q, resources, Sta
|
||||
delete @pendingChanges["#{id}"]["#{attr}"]
|
||||
delete @pendingChanges["#{id}"] if @changeCount( @pendingChanges["#{id}"] ) < 1
|
||||
|
||||
submitAll: (form=null) =>
|
||||
submitAll: (event=null, form=null) =>
|
||||
all = []
|
||||
@errors = []
|
||||
StatusMessage.display('progress', "Saving...")
|
||||
|
||||
@@ -38,7 +38,8 @@
|
||||
|
||||
.row.margin-bottom-50{ ng: { show: "!RequestMonitor.loading && filteredCustomers.length > 0" } }
|
||||
%form{ name: "customers_form" }
|
||||
%save-bar{ save: "submitAll(customers_form)", form: "customers_form" }
|
||||
%save-bar{ buttons: "[{ text: 'Save Changes', action: submitAll, param: customers_form, class: 'red' }]", form: "customers_form" }
|
||||
|
||||
%table.index#customers
|
||||
%col.email{ width: "20%"}
|
||||
%col.code{ width: "20%"}
|
||||
|
||||
Reference in New Issue
Block a user