Allow bulk update of order cycle name

This commit is contained in:
Kristina Lim
2018-08-16 05:31:23 +08:00
parent c9862535f8
commit c14e7ea8d5
5 changed files with 67 additions and 48 deletions

View File

@@ -66,7 +66,7 @@ angular.module("admin.resources").factory 'OrderCycles', ($q, $injector, OrderCy
changes
attrsToSave: ->
['orders_open_at','orders_close_at']
['name', 'orders_open_at','orders_close_at']
resetAttribute: (order_cycle, attribute) ->
order_cycle[attribute] = @pristineByID[order_cycle.id][attribute]