mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Refactored device context menu to its own directive.
Now works in standalone also.
This commit is contained in:
parent
f705cd60a7
commit
c81cd75a50
10 changed files with 86 additions and 30 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue