eslint rules applyed
This commit is contained in:
parent
7d7a2a64e0
commit
71d7c3f17d
|
@ -46,11 +46,11 @@ export default class Controller extends Component {
|
||||||
|
|
||||||
let parent = this.snackbar.querySelectorAll('.shape')[0];
|
let parent = this.snackbar.querySelectorAll('.shape')[0];
|
||||||
|
|
||||||
if (parent) {
|
if (parent)
|
||||||
this.snackbar.insertBefore(shape, parent);
|
this.snackbar.insertBefore(shape, parent);
|
||||||
} else {
|
else
|
||||||
this.snackbar.appendChild(shape);
|
this.snackbar.appendChild(shape);
|
||||||
}
|
|
||||||
|
|
||||||
return shape;
|
return shape;
|
||||||
}
|
}
|
||||||
|
@ -108,11 +108,10 @@ export default class Controller extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onButtonClick(shape) {
|
onButtonClick(shape) {
|
||||||
if (this.actionHandler) {
|
if (this.actionHandler)
|
||||||
this.actionHandler();
|
this.actionHandler();
|
||||||
} else {
|
else
|
||||||
this.hide(shape);
|
this.hide(shape);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Controller.$inject = ['$element', '$translate'];
|
Controller.$inject = ['$element', '$translate'];
|
||||||
|
|
Loading…
Reference in New Issue