mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-03 16:10:05 +00:00
feat: re-enable Security settings tab
Restore the Security tab in UserSettingsDialog (re-add the LockIcon and SecurityUserSettingsTab imports and uncomment the tab). Reverses part of the earlier 'disable security setting' customisation.
This commit is contained in:
@@ -18,6 +18,7 @@ import KeyboardIcon from "@vector-im/compound-design-tokens/assets/web/icons/key
|
||||
import KeyIcon from "@vector-im/compound-design-tokens/assets/web/icons/key";
|
||||
import SidebarIcon from "@vector-im/compound-design-tokens/assets/web/icons/sidebar";
|
||||
import MicOnIcon from "@vector-im/compound-design-tokens/assets/web/icons/mic-on";
|
||||
import LockIcon from "@vector-im/compound-design-tokens/assets/web/icons/lock";
|
||||
import BlockIcon from "@vector-im/compound-design-tokens/assets/web/icons/block";
|
||||
|
||||
import TabbedView, { Tab, useActiveTabWithDefault } from "../../structures/TabbedView";
|
||||
@@ -25,6 +26,7 @@ import { _t, _td } from "../../../languageHandler";
|
||||
import { useModuleSettingsTabs } from "../../../modules/ExtrasApi";
|
||||
import { ModuleApi } from "../../../modules/Api";
|
||||
import AppearanceUserSettingsTab from "../settings/tabs/user/AppearanceUserSettingsTab";
|
||||
import SecurityUserSettingsTab from "../settings/tabs/user/SecurityUserSettingsTab";
|
||||
import NotificationUserSettingsTab from "../settings/tabs/user/NotificationUserSettingsTab";
|
||||
import PreferencesUserSettingsTab from "../settings/tabs/user/PreferencesUserSettingsTab";
|
||||
import VoiceUserSettingsTab from "../settings/tabs/user/VoiceUserSettingsTab";
|
||||
@@ -214,7 +216,6 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
|
||||
);
|
||||
}
|
||||
|
||||
/* JP: Disabled Security tab for HealthChat
|
||||
tabs.push(
|
||||
new Tab(
|
||||
UserTab.Security,
|
||||
@@ -224,7 +225,6 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
|
||||
"UserSettingsSecurityPrivacy",
|
||||
),
|
||||
);
|
||||
*/
|
||||
|
||||
tabs.push(
|
||||
new Tab(
|
||||
|
||||
+26
@@ -167,6 +167,32 @@ NodeList [
|
||||
Sidebar
|
||||
</span>
|
||||
</li>,
|
||||
<li
|
||||
aria-controls="mx_tabpanel_USER_SECURITY_TAB"
|
||||
aria-selected="false"
|
||||
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
||||
data-testid="settings-tab-USER_SECURITY_TAB"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
viewBox="0 0 24 24"
|
||||
width="1em"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M6 22q-.824 0-1.412-.587A1.93 1.93 0 0 1 4 20V10q0-.825.588-1.412A1.93 1.93 0 0 1 6 8h1V6q0-2.075 1.463-3.537Q9.926 1 12 1q2.075 0 3.537 1.463Q17 3.925 17 6v2h1q.824 0 1.413.588Q20 9.175 20 10v10q0 .824-.587 1.413A1.93 1.93 0 0 1 18 22zm0-2h12V10H6zM9 8h6V6q0-1.25-.875-2.125A2.9 2.9 0 0 0 12 3q-1.25 0-2.125.875A2.9 2.9 0 0 0 9 6z"
|
||||
/>
|
||||
</svg>
|
||||
<span
|
||||
class="mx_TabbedView_tabLabel_text"
|
||||
id="mx_tabpanel_USER_SECURITY_TAB_label"
|
||||
>
|
||||
Security & Privacy
|
||||
</span>
|
||||
</li>,
|
||||
<li
|
||||
aria-controls="mx_tabpanel_USER_ENCRYPTION_TAB"
|
||||
aria-selected="false"
|
||||
|
||||
Reference in New Issue
Block a user