Files
openfoodnetwork/app/assets/javascripts/darkswarm/directives/auth.js.coffee
2021-08-02 18:59:42 +01:00

6 lines
197 B
CoffeeScript

angular.module('Darkswarm').directive 'auth', (AuthenticationService) ->
restrict: 'A'
link: (scope, elem, attrs) ->
elem.bind "click", ->
AuthenticationService.open '/' + attrs.auth