mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
https://github.com/Termix-SSH/Support/issues/1218
This commit is contained in:
1 parent
0ab6a3e674
commit
db2c90838f
4 files changed
+46
-1
No files matched your search
@@ -768,6 +768,9 @@ export function UserProfilePanel({
|
||||
const [confirmTabClose, setConfirmTabClose] = useState(
|
||||
() => localStorage.getItem("confirmTabClose") === "true",
|
||||
);
|
||||
const [showTabNumbers, setShowTabNumbers] = useState(
|
||||
() => localStorage.getItem("showTabNumbers") === "true",
|
||||
);
|
||||
const [hiddenRailTabs, setHiddenRailTabs] = useState<Set<string>>(() => {
|
||||
try {
|
||||
const stored = localStorage.getItem("hiddenRailTabs");
|
||||
@@ -2122,6 +2125,19 @@ export function UserProfilePanel({
|
||||
}}
|
||||
/>
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
label={t("newUi.sidebar.userProfile.showTabNumbers")}
|
||||
description={t("newUi.sidebar.userProfile.showTabNumbersDesc")}
|
||||
>
|
||||
<FakeSwitch
|
||||
checked={showTabNumbers}
|
||||
onChange={(v) => {
|
||||
setShowTabNumbers(v);
|
||||
localStorage.setItem("showTabNumbers", v.toString());
|
||||
window.dispatchEvent(new Event("showTabNumbersChanged"));
|
||||
}}
|
||||
/>
|
||||
</SettingRow>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1 border-t border-border pt-3">
|
||||
|
||||
Reference in new issue
Block a user