Fix the simple edit OC and the new OC page flows

This commit is contained in:
luisramos0
2019-11-01 20:24:49 +00:00
parent 305d7b1125
commit e03e3ae50a
4 changed files with 14 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ angular.module('admin.orderCycles')
$scope.StatusMessage = StatusMessage
$scope.view = 'general_settings'
$scope.$watch 'order_cycle_form.$dirty', (newValue) ->
StatusMessage.display 'notice', t("admin.unsaved_changes") if newValue