mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add kubectl/helm download mirror select to preferences (#185)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
f0dd4095ac
commit
5c2e64b487
7 files changed
+73
-81
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user