Mark admin enterprises form dirty when property removed

This commit is contained in:
Rohan Mitchell
2016-08-31 15:40:21 +10:00
parent 0e01350107
commit 3e565ad7cb
4 changed files with 19 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ angular.module("admin.enterprises")
# Provide a callback for generating warning messages displayed before leaving the page. This is passed in
# from a directive "nav-check" in the page - if we pass it here it will be called in the test suite,
# and on all new uses of this contoller, and we might not want that .
# and on all new uses of this contoller, and we might not want that.
enterpriseNavCallback = ->
if $scope.Enterprise.$dirty
"Your changes to the enterprise are not saved yet."