1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove Other tab

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-04-05 11:20:48 +03:00
parent 9de5f731d8
commit 9a4194e18a

View File

@ -92,11 +92,6 @@ export class Preferences extends React.Component {
active={this.activeTab == PreferencesTab.Extensions}
/>
}
<Tab
value={PreferencesTab.Other}
label="Other"
active={this.activeTab == PreferencesTab.Other}
/>
</Tabs>
);
}
@ -146,6 +141,7 @@ export class Preferences extends React.Component {
options={this.themeOptions}
value={preferences.colorTheme}
onChange={({ value }: SelectOption) => preferences.colorTheme = value}
themeName="lens"
/>
</section>
@ -161,6 +157,22 @@ export class Preferences extends React.Component {
onBlur={() => preferences.shell = this.shell}
/>
</section>
<hr/>
<section id="other">
<SubTitle title="Start-up"/>
<FormSwitch
control={
<Switcher
checked={preferences.openAtLogin}
onChange={v => preferences.openAtLogin = v.target.checked}
name="startup"
/>
}
label="Automatically start Lens on login"
/>
</section>
</section>
)}
{this.activeTab == PreferencesTab.Proxy && (
@ -230,23 +242,6 @@ export class Preferences extends React.Component {
{extensions.filter(e => !e.showInPreferencesTab).map(this.renderExtension)}
</section>
)}
{this.activeTab == PreferencesTab.Other && (
<section id="other">
<h2>Other</h2>
<SubTitle title="Start-up"/>
<FormSwitch
control={
<Switcher
checked={preferences.openAtLogin}
onChange={v => preferences.openAtLogin = v.target.checked}
name="startup"
/>
}
label="Automatically start Lens on login"
/>
</section>
)}
</PageLayout>
);
}