mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-03 06:31:49 -05:00
32 lines
608 B
JavaScript
32 lines
608 B
JavaScript
function AtPanelController ($state) {
|
|
let vm = this;
|
|
|
|
vm.dismiss = () => {
|
|
$state.go('^');
|
|
};
|
|
|
|
vm.use = scope => {
|
|
scope.dismiss = this.dismiss;
|
|
};
|
|
}
|
|
|
|
AtPanelController.$inject = ['$state'];
|
|
|
|
function atPanel (pathService) {
|
|
return {
|
|
restrict: 'E',
|
|
replace: true,
|
|
transclude: true,
|
|
templateUrl: pathService.getPartialPath('components/panel/panel'),
|
|
controller: AtPanelController,
|
|
controllerAs: 'vm',
|
|
scope: {
|
|
state: '='
|
|
}
|
|
};
|
|
}
|
|
|
|
atPanel.$inject = ['PathService'];
|
|
|
|
export default atPanel;
|