mobile: remove clear version history action for multiple selected notes

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
This commit is contained in:
kashaf-ansari-dev
2026-07-02 10:19:58 +05:00
parent e4a7d63e07
commit 2edbc3bf2e
5 changed files with 4 additions and 41 deletions

View File

@@ -159,7 +159,7 @@ export default function NoteHistory({
onPress: () => {
presentDialog({
title: strings.clearHistory(),
paragraph: strings.clearHistoryConfirmation(1),
paragraph: strings.clearHistoryConfirmation(),
positiveText: strings.clear(),
negativeText: strings.cancel(),
positiveType: "errorShade",

View File

@@ -211,32 +211,6 @@ export const SelectionHeader = React.memo(
visible: type === "note",
icon: "export"
},
{
title: strings.clearHistory(),
onPress: async () => {
presentDialog({
title: strings.clearHistory(),
paragraph: strings.clearHistoryConfirmation(
selectedItemsList.length
),
positiveText: strings.clear(),
negativeText: strings.cancel(),
positiveType: "errorShade",
positivePress: async () => {
await db.noteHistory.clearSessions(...selectedItemsList);
Navigation.queueRoutesForUpdate();
clearSelection();
ToastManager.show({
heading: strings.historyCleared(),
type: "success"
});
}
});
},
visible: type === "note",
icon: "history"
},
{
title: strings.addToNotebook(),
onPress: async () => {

View File

@@ -2299,11 +2299,7 @@ msgstr "Delete account"
msgid "Delete all"
msgstr "Delete all"
#: src/strings.ts:2805
msgid "Delete all version history for {count} selected notes?"
msgstr "Delete all version history for {count} selected notes?"
#: src/strings.ts:2804
#: src/strings.ts:2802
msgid "Delete all version history for this note?"
msgstr "Delete all version history for this note?"

View File

@@ -2288,11 +2288,7 @@ msgstr ""
msgid "Delete all"
msgstr ""
#: src/strings.ts:2805
msgid "Delete all version history for {count} selected notes?"
msgstr ""
#: src/strings.ts:2804
#: src/strings.ts:2802
msgid "Delete all version history for this note?"
msgstr ""

View File

@@ -2802,8 +2802,5 @@ Continue without attachments?`,
t`Prevent the screen from turning off while the editor is focused.`,
clearHistory: () => t`Clear history`,
historyCleared: () => t`Version history cleared`,
clearHistoryConfirmation: (count: number) =>
count === 1
? t`Delete all version history for this note?`
: t`Delete all version history for ${count} selected notes?`
clearHistoryConfirmation: () => t`Delete all version history for this note?`
};