Add kubectl/helm download mirror select to preferences (#185)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-04-01 07:19:10 +03:00
1 parent f0dd4095ac
commit 5c2e64b487
7 files changed
+73 -81

No files matched your search

+4 -14
View File
@@ -4,20 +4,6 @@ import * as version210Beta4 from "./migrations/user-store/2.1.0-beta.4"
export interface User {
id?: string;
bio?: string;
company?: string;
email?: string;
'first-name'?: string;
'is-customer'?: boolean;
'is-partner'?: boolean;
'last-name'?: string;
'lens-invitation-used'?: boolean;
location?: string;
//notifications?: array;
url?: string;
'user-avatar-src'?: string;
username: string;
verified?: boolean;
}
export interface UserPreferences {
@@ -25,6 +11,7 @@ export interface UserPreferences {
colorTheme?: string;
allowUntrustedCAs?: boolean;
allowTelemetry?: boolean;
downloadMirror?: string;
}
export class UserStore {
@@ -70,6 +57,9 @@ export class UserStore {
if (!prefs.colorTheme) {
prefs.colorTheme = "dark"
}
if (!prefs.downloadMirror) {
prefs.downloadMirror = "default"
}
if (prefs.allowTelemetry === undefined) {
prefs.allowTelemetry = true
}