mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show always Events title in resource details (#286)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
c1010c1315
commit
634cca2c5a
@ -23,12 +23,15 @@ export class KubeEventDetails extends React.Component<Props> {
|
||||
const { object } = this.props;
|
||||
const events = eventStore.getEventsByObject(object);
|
||||
if (!events.length) {
|
||||
return null;
|
||||
return (
|
||||
<DrawerTitle className="flex gaps align-center">
|
||||
<span><Trans>Events</Trans></span>
|
||||
</DrawerTitle>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<DrawerTitle className="flex gaps align-center">
|
||||
<Icon material="access_time"/>
|
||||
<span><Trans>Events</Trans></span>
|
||||
</DrawerTitle>
|
||||
<div className="KubeEventDetails">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user