Files
stf-DeviceFarmer/res/app/components/stf/admin-mode/admin-mode-directive.js
Gunther Brunner fa71aae56a Added admin-mode.
For now it shows/hides columns in the Device List and adds kicking behaviour.
Using $rootScope.adminMode for convenience.
2014-07-14 20:23:32 +09:00

12 lines
255 B
JavaScript

module.exports = function adminModeDirective($rootScope, SettingsService) {
return {
restrict: 'AE',
link: function (scope) {
SettingsService.bind($rootScope, {
target: 'adminMode',
defaultValue: false
})
}
}
}