mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add eslint rule padding-line-between-statements (#1593)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
7b77f18376
commit
dcf253e7d5
401 files changed
+2018
-40
No files matched your search
@@ -34,6 +34,7 @@ export class JobDetails extends React.Component<Props> {
|
||||
|
||||
render() {
|
||||
const { object: job } = this.props;
|
||||
|
||||
if (!job) return null;
|
||||
const selectors = job.getSelectors();
|
||||
const nodeSelector = job.getNodeSelectors();
|
||||
@@ -41,6 +42,7 @@ export class JobDetails extends React.Component<Props> {
|
||||
const childPods = jobStore.getChildPods(job);
|
||||
const ownerRefs = job.getOwnerRefs();
|
||||
const condition = job.getCondition();
|
||||
|
||||
return (
|
||||
<div className="JobDetails">
|
||||
<KubeObjectMeta object={job}/>
|
||||
@@ -71,6 +73,7 @@ export class JobDetails extends React.Component<Props> {
|
||||
ownerRefs.map(ref => {
|
||||
const { name, kind } = ref;
|
||||
const detailsUrl = getDetailsUrl(lookupApiLink(ref, job));
|
||||
|
||||
return (
|
||||
<p key={name}>
|
||||
{kind} <Link to={detailsUrl}>{name}</Link>
|
||||
|
||||
@@ -22,8 +22,10 @@ export class JobStore extends KubeObjectStore<Job> {
|
||||
|
||||
getStatuses(jobs?: Job[]) {
|
||||
const status = { failed: 0, pending: 0, running: 0, succeeded: 0 };
|
||||
|
||||
jobs.forEach(job => {
|
||||
const pods = this.getChildPods(job);
|
||||
|
||||
if (pods.some(pod => pod.getStatus() === PodStatus.FAILED)) {
|
||||
status.failed++;
|
||||
}
|
||||
@@ -37,6 +39,7 @@ export class JobStore extends KubeObjectStore<Job> {
|
||||
status.succeeded++;
|
||||
}
|
||||
});
|
||||
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ export class Jobs extends React.Component<Props> {
|
||||
]}
|
||||
renderTableContents={(job: Job) => {
|
||||
const condition = job.getCondition();
|
||||
|
||||
return [
|
||||
job.getName(),
|
||||
job.getNs(),
|
||||
|
||||
Reference in new issue
Block a user