Inyect tgConfirm into AttachmentsDirective
parent
f70cfc4edc
commit
0290e68b13
|
@ -29,7 +29,7 @@ module = angular.module("taigaCommon")
|
||||||
## Attachments Directive
|
## Attachments Directive
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
AttachmentsDirective = ($repo, $rs) ->
|
AttachmentsDirective = ($repo, $rs, $confirm) ->
|
||||||
link = ($scope, $el, $attrs, $model) ->
|
link = ($scope, $el, $attrs, $model) ->
|
||||||
$ctrl = $el.controller()
|
$ctrl = $el.controller()
|
||||||
$scope.uploadingFiles = []
|
$scope.uploadingFiles = []
|
||||||
|
@ -150,7 +150,7 @@ AttachmentsDirective = ($repo, $rs) ->
|
||||||
require: "ngModel"
|
require: "ngModel"
|
||||||
}
|
}
|
||||||
|
|
||||||
module.directive("tgAttachments", ["$tgRepo", "$tgResources", AttachmentsDirective])
|
module.directive("tgAttachments", ["$tgRepo", "$tgResources", "$tgConfirm", AttachmentsDirective])
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
Loading…
Reference in New Issue