mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cherry Pick from master to release/v5.4 (#4945)
This commit is contained in:
parent
8524f9d244
commit
21f4769f65
@ -379,7 +379,11 @@ export class Cluster implements ClusterModel, ClusterState {
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
@action disconnect() {
|
@action disconnect(): void {
|
||||||
|
if (this.disconnected) {
|
||||||
|
return void logger.debug("[CLUSTER]: already disconnected", { id: this.id });
|
||||||
|
}
|
||||||
|
|
||||||
logger.info(`[CLUSTER]: disconnecting`, { id: this.id });
|
logger.info(`[CLUSTER]: disconnecting`, { id: this.id });
|
||||||
this.eventsDisposer();
|
this.eventsDisposer();
|
||||||
this.contextHandler?.stopServer();
|
this.contextHandler?.stopServer();
|
||||||
|
|||||||
@ -55,7 +55,7 @@ describe("human format durations", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("durations less than 8 years returns years and days", () => {
|
test("durations less than 8 years returns years and days", () => {
|
||||||
const timeValue = Date.now() - new Date(moment().subtract(2, "years").subtract(5, "days").subtract(2, "hours").toDate()).getTime();
|
const timeValue = new Date(2020, 0, 10, 12, 0, 0, 0).getTime() - new Date(2018, 0, 4, 12, 0, 0, 0).getTime();
|
||||||
|
|
||||||
const res = formatDuration(timeValue);
|
const res = formatDuration(timeValue);
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,6 @@ export const Editor = observer(() => {
|
|||||||
<Input
|
<Input
|
||||||
theme="round-black"
|
theme="round-black"
|
||||||
type="text"
|
type="text"
|
||||||
validators={InputValidators.isNumber}
|
|
||||||
value={editorConfiguration.fontFamily}
|
value={editorConfiguration.fontFamily}
|
||||||
onChange={value => editorConfiguration.fontFamily = value}
|
onChange={value => editorConfiguration.fontFamily = value}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user