mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 19:08:02 -02:30
Use eslint on ui/lib and ui/features code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const templateUrl = require('@components/panel/body.partial.html');
|
||||
const templateUrl = require('~components/panel/body.partial.html');
|
||||
|
||||
function atPanelBody () {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const templateUrl = require('@components/panel/heading.partial.html');
|
||||
const templateUrl = require('~components/panel/heading.partial.html');
|
||||
|
||||
function link (scope, el, attrs, panel) {
|
||||
panel.use(scope);
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
const templateUrl = require('@components/panel/panel.partial.html');
|
||||
const templateUrl = require('~components/panel/panel.partial.html');
|
||||
|
||||
function atPanelLink (scope, el, attrs, controllers) {
|
||||
let panelController = controllers[0];
|
||||
function atPanelLink (scope, el, attrs, controller) {
|
||||
const panelController = controller;
|
||||
|
||||
panelController.init(scope, el);
|
||||
panelController.init(scope);
|
||||
}
|
||||
|
||||
function AtPanelController ($state) {
|
||||
let vm = this;
|
||||
const vm = this;
|
||||
|
||||
let scope;
|
||||
let el;
|
||||
|
||||
vm.init = (_scope_, _el_) => {
|
||||
vm.init = (_scope_) => {
|
||||
scope = _scope_;
|
||||
el = _el_;
|
||||
};
|
||||
|
||||
vm.dismiss = () => {
|
||||
@@ -32,7 +30,7 @@ function atPanel () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
require: ['atPanel'],
|
||||
require: 'atPanel',
|
||||
transclude: true,
|
||||
templateUrl,
|
||||
controller: AtPanelController,
|
||||
|
||||
Reference in New Issue
Block a user