mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Refactored device context menu to its own directive.
Now works in standalone also.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user