mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
20 lines
460 B
JavaScript
20 lines
460 B
JavaScript
module.exports = function deviceContextMenuDirective($window) {
|
|
return {
|
|
restrict: 'EA',
|
|
replace: false,
|
|
//scope: {
|
|
// control: '&',
|
|
// device: '&'
|
|
//},
|
|
transclude: true,
|
|
template: require('./device-context-menu.jade'),
|
|
link: function (scope, element, attrs) {
|
|
//var device = scope.device()
|
|
//var control = scope.control()
|
|
scope.windowClose = function () {
|
|
$window.close()
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|