mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
WIP: Alerting user to presence of new variant for inventory, new variants can be filtered + limited
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user