mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
43 lines
904 B
JavaScript
43 lines
904 B
JavaScript
function atTabLink (scope, el, attrs, controllers) {
|
|
let groupController = controllers[0];
|
|
let tabController = controllers[1];
|
|
|
|
tabController.init(scope, el, groupController);
|
|
}
|
|
|
|
function AtTabController ($state) {
|
|
let vm = this;
|
|
|
|
let scope;
|
|
let el;
|
|
let group;
|
|
|
|
vm.init = (_scope_, _el_, _group_) => {
|
|
scope = _scope_;
|
|
el = _el_;
|
|
group = _group_;
|
|
|
|
group.register(scope);
|
|
};
|
|
}
|
|
|
|
AtTabController.$inject = ['$state'];
|
|
|
|
function atTab (pathService, _$animate_) {
|
|
return {
|
|
restrict: 'E',
|
|
replace: true,
|
|
transclude: true,
|
|
require: ['^^atTabGroup', 'atTab'],
|
|
templateUrl: pathService.getPartialPath('components/tabs/tab'),
|
|
controller: AtTabController,
|
|
controllerAs: 'vm',
|
|
link: atTabLink,
|
|
scope: true
|
|
};
|
|
}
|
|
|
|
atTab.$inject = ['PathService'];
|
|
|
|
export default atTab;
|