mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
adding short doc explanation for aw-feature directive
This commit is contained in:
@@ -1,4 +1,22 @@
|
|||||||
|
/**
|
||||||
|
* @ngdoc overview
|
||||||
|
* @name features
|
||||||
|
* @scope
|
||||||
|
* @description enables/disables features based on license
|
||||||
|
*
|
||||||
|
* @ngdoc directive
|
||||||
|
* @name features.directive:awFeature
|
||||||
|
* @description The aw-feature directive works by taking in a string
|
||||||
|
* that maps to a license feature, and removes that feature from the
|
||||||
|
* DOM if it is a feature not supported by the user's license.
|
||||||
|
* For example, adding `aw-feature="system-tracking"` will enable or disable
|
||||||
|
* the system tracking button based on the license configuration on the
|
||||||
|
* /config endpoint.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
import featureController from 'tower/shared/features/features.controller';
|
import featureController from 'tower/shared/features/features.controller';
|
||||||
|
|
||||||
export default [ function() {
|
export default [ function() {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import awFeatureDirective from 'tower/shared/features/features.directive';
|
import awFeatureDirective from 'tower/shared/features/features.directive';
|
||||||
import FeaturesService from 'tower/shared/features/features.service';
|
import FeaturesService from 'tower/shared/features/features.service';
|
||||||
|
|
||||||
export default
|
export default
|
||||||
angular.module('features', [])
|
angular.module('features', [])
|
||||||
.directive('awFeature', awFeatureDirective)
|
.directive('awFeature', awFeatureDirective)
|
||||||
|
|||||||
Reference in New Issue
Block a user