web: add manage attachments button in settings

This commit is contained in:
Abdullah Atta
2023-06-19 12:19:42 +05:00
parent b9b21a760a
commit c61082cdee

View File

@@ -23,6 +23,7 @@ import {
} from "../../stores/user-store";
import { SettingsGroup } from "./types";
import {
showAttachmentsDialog,
showClearSessionsConfirmation,
showEmailChangeDialog,
showLoadingDialog,
@@ -56,6 +57,20 @@ export const ProfileSettings: SettingsGroup[] = [
}
]
},
{
key: "manage-attachments",
title: "Attachments",
description: "Manage all your attachments in one place.",
isHidden: () => !useUserStore.getState().isLoggedIn,
components: [
{
type: "button",
title: "Open manager",
variant: "secondary",
action: showAttachmentsDialog
}
]
},
{
key: "recovery-key",
title: "Recovery key",