Add eslint rule padding-line-between-statements (#1593)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-12-02 09:55:52 +02:00
1 parent 7b77f18376
commit dcf253e7d5
401 files changed
+2018 -40

No files matched your search

@@ -41,6 +41,7 @@ export class ReplicaSetDetails extends React.Component<Props> {
render() {
const { object: replicaSet } = this.props;
if (!replicaSet) return null;
const { metrics } = replicaSetStore;
const { status } = replicaSet;
@@ -49,6 +50,7 @@ export class ReplicaSetDetails extends React.Component<Props> {
const nodeSelector = replicaSet.getNodeSelectors();
const images = replicaSet.getImages();
const childPods = replicaSetStore.getChildPods(replicaSet);
return (
<div className="ReplicaSetDetails">
{podsStore.isLoaded && (
@@ -12,6 +12,7 @@ export class ReplicaSetStore extends KubeObjectStore<ReplicaSet> {
async loadMetrics(replicaSet: ReplicaSet) {
const pods = this.getChildPods(replicaSet);
this.metrics = await podsApi.getMetrics(pods, replicaSet.getNs(), "");
}
@@ -39,10 +39,12 @@ export class ReplicaSets extends React.Component<Props> {
render() {
const { replicaSets } = this.props;
if (!replicaSets.length && !replicaSetStore.isLoaded) return (
<div className="ReplicaSets"><Spinner center/></div>
);
if (!replicaSets.length) return null;
return (
<div className="ReplicaSets flex column">
<DrawerTitle title={<Trans>Deploy Revisions</Trans>}/>