WIP: Alerting user to presence of new variant for inventory, new variants can be filtered + limited

This commit is contained in:
Rob Harrington
2016-01-20 18:36:28 +11:00
parent f06d909c23
commit 7008d26f68
10 changed files with 128 additions and 43 deletions

View File

@@ -0,0 +1,15 @@
angular.module("admin.utils").directive "alertRow", ->
restrict: "E"
replace: true
scope:
message: '@'
buttonText: '@?'
buttonAction: '&?'
close: "&?"
transclude: true
templateUrl: "admin/alert_row.html"
link: (scope, element, attrs) ->
scope.dismiss = ->
scope.close() if scope.close?
element.hide()
return false