renderMessage(messageKey: string) {
const { component } = this.props;
const canSeeBackgroundTasks =
- component.configuration != undefined && component.configuration.showBackgroundTasks;
+ component.configuration !== undefined && component.configuration.showBackgroundTasks;
const bgTaskUrl = getComponentBackgroundTaskUrl(component.key);
if (canSeeBackgroundTasks) {
loading={loading}
isCluster={isCluster(sysInfoData)}
logLevel={getSystemLogsLevel(sysInfoData)}
- showActions={sysInfoData != undefined}
+ showActions={sysInfoData !== undefined}
onLogLevelChange={this.fetchSysInfo}
/>
{this.renderSysInfo()}
'source-duplications-expanded': this.state.displayDuplications
});
- const displaySources = !notAccessible && !sourceRemoved;
-
return (
<div className={className} ref={node => (this.node = node)}>
<SourceViewerHeader
{translate('code_viewer.no_source_code_displayed_due_to_source_removed')}
</div>
)}
- {displaySources && sources != null && this.renderCode(sources)}
+ {!sourceRemoved && sources != null && this.renderCode(sources)}
</div>
);
}
this.props.onCheck(this.props.issue.key);
return false;
}
+ return undefined;
});
}
export function toShortNotSoISOString(rawDate: ParsableDate): string {
const date = parseDate(rawDate);
- return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate());
+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
}
export function toNotSoISOString(rawDate: ParsableDate): string {