mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: add manage attachments button in settings
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user