mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
mobile: remove clear version history action for multiple selected notes
Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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?"
|
||||
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
|
||||
@@ -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?`
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user