1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix for parsing error object

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-10-12 10:06:22 +03:00
parent 9afcf6ceb8
commit 80df0da00b
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ export class PodLogsStore extends DockTabStore<IPodLogsData> {
} else { } else {
this.logs.set(tabId, { oldLogs, newLogs: loadedLogs }); this.logs.set(tabId, { oldLogs, newLogs: loadedLogs });
} }
} catch (error) { } catch ({error}) {
this.logs.set(tabId, { this.logs.set(tabId, {
oldLogs: [ oldLogs: [
_i18n._(t`Failed to load logs: ${error.message}`), _i18n._(t`Failed to load logs: ${error.message}`),

View File

@ -183,13 +183,13 @@ export class PodLogs extends React.Component<Props> {
<Icon <Icon
material="av_timer" material="av_timer"
onClick={this.toggleTimestamps} onClick={this.toggleTimestamps}
className={cssNames({ active: showTimestamps })} className={cssNames("timestamps-icon", { active: showTimestamps })}
tooltip={(showTimestamps ? _i18n._(t`Hide`) : _i18n._(t`Show`)) + " " + _i18n._(t`timestamps`)} tooltip={(showTimestamps ? _i18n._(t`Hide`) : _i18n._(t`Show`)) + " " + _i18n._(t`timestamps`)}
/> />
<Icon <Icon
material="undo" material="undo"
onClick={this.togglePrevious} onClick={this.togglePrevious}
className={cssNames({ active: previous })} className={cssNames("undo-icon", { active: previous })}
tooltip={(previous ? _i18n._(t`Show current logs`) : _i18n._(t`Show previous terminated container logs`))} tooltip={(previous ? _i18n._(t`Show current logs`) : _i18n._(t`Show previous terminated container logs`))}
/> />
<Icon <Icon