mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: allow to drag window at top
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
e14b52446c
commit
285bcb4795
@ -5,6 +5,8 @@ import migrations from "../migrations/user-store"
|
||||
import { getAppVersion } from "./utils/app-version";
|
||||
import { tracker } from "./tracker";
|
||||
|
||||
// fixme: detect new contexts from .kube/config since last open
|
||||
|
||||
export interface UserStoreModel {
|
||||
lastSeenAppVersion: string;
|
||||
seenContexts: string[];
|
||||
@ -34,7 +36,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
||||
|
||||
@observable lastSeenAppVersion = "0.0.0"
|
||||
@observable seenContexts: string[] = [];
|
||||
@observable newContexts: string[] = []; // todo: detect new contexts from .kube/config since last open
|
||||
@observable newContexts: string[] = [];
|
||||
|
||||
@observable preferences: UserPreferences = {
|
||||
allowTelemetry: true,
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
@include hidden-scrollbar;
|
||||
padding: var(--flex-gap);
|
||||
border-left: 1px solid #353a3e;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $colorInfo;
|
||||
}
|
||||
a {
|
||||
color: $colorInfo;
|
||||
}
|
||||
}
|
||||
@ -15,7 +15,7 @@ export class AddCluster extends React.Component {
|
||||
readonly customContext = "custom"
|
||||
readonly kubeConfigFile = path.join(process.env.HOME, '.kube', 'config');
|
||||
|
||||
@observable useProxySettings = false
|
||||
@observable showSettings = false
|
||||
@observable clusterContext = ""
|
||||
@observable error = ""
|
||||
@observable proxyServerUrl = ""
|
||||
@ -47,12 +47,12 @@ export class AddCluster extends React.Component {
|
||||
options={this.clusterOptions}
|
||||
onChange={({ value }: SelectOption) => this.clusterContext = value}
|
||||
/>
|
||||
<div className="use-proxy">
|
||||
<a onClick={() => this.useProxySettings = !this.useProxySettings}>
|
||||
<div className="cluster-settings">
|
||||
<a href="#" onClick={() => this.showSettings = !this.showSettings}>
|
||||
<Trans>Proxy settings</Trans>
|
||||
</a>
|
||||
</div>
|
||||
{this.useProxySettings && (
|
||||
{this.showSettings && (
|
||||
<div className="proxy-settings">
|
||||
<Input
|
||||
autoFocus
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
@import "fonts";
|
||||
|
||||
*, *:before, *:after {
|
||||
@include set-draggable(false);
|
||||
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@ -31,8 +29,8 @@ html {
|
||||
}
|
||||
|
||||
html, body {
|
||||
@include set-draggable(false);
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#app {
|
||||
|
||||
@ -20,6 +20,7 @@ import { landingURL } from "../+landing-page";
|
||||
import { Tooltip, TooltipContent } from "../tooltip";
|
||||
|
||||
// fixme: allow to rearrange clusters with drag&drop
|
||||
// fixme: disconnect cluster from context-menu
|
||||
|
||||
interface Props {
|
||||
className?: IClassName;
|
||||
@ -50,7 +51,6 @@ export class ClustersMenu extends React.Component<Props> {
|
||||
click: () => navigate(clusterSettingsURL())
|
||||
}));
|
||||
|
||||
// fixme: disconnect cluster
|
||||
if (cluster.initialized) {
|
||||
menu.append(new MenuItem({
|
||||
label: _i18n._(t`Disconnect`),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user