clean up, typo fix

This commit is contained in:
Roman committed 2020-06-14 15:35:12 +03:00
1 parent d901b084f9
commit 9fd004b214
7 files changed
+37 -38

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
import "../../common/system-ca"
import "./assets/css/app.scss"
import "prismjs";
import "prismjs/components/prism-yaml"
+2 -1
View File
@@ -37,7 +37,7 @@ export interface IKubeObjectMetadata {
}[];
}
export type IKubeMetaField = keyof KubeObject["metadata"];
export type IKubeMetaField = keyof IKubeObjectMetadata;
@autobind()
export class KubeObject implements ItemObject {
@@ -71,6 +71,7 @@ export class KubeObject implements ItemObject {
apiVersion: string
kind: string
metadata: IKubeObjectMetadata;
status?: any; // todo: type-safety support
get selfLink() {
return this.metadata.selfLink
+3 -3
View File
@@ -1,8 +1,8 @@
import { observable, when } from "mobx";
import type { IConfigRoutePayload } from "../main/routes/config";
import { autobind, interval } from "./utils";
import { apiBase } from "./api";
import { apiPrefix, buildVersion, isDevelopment } from "../common/vars";
import { autobind, interval } from "./utils";
import { configApi } from "./api/endpoints";
@autobind()
export class ConfigStore {
@@ -21,7 +21,7 @@ export class ConfigStore {
}
load() {
return apiBase.get("/config").then((config: any) => {
return configApi.getConfig().then((config: any) => {
this.config = config;
this.isLoaded = true;
});