Skip to content

Commit 4d77053

Browse files
authored
Merge pull request #2590 from arcturus140/improve2588
enhancement for #2588
2 parents 235e88f + 4a197a5 commit 4d77053

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

browser/main/SideNav/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {SortableContainer} from 'react-sortable-hoc'
1919
import i18n from 'browser/lib/i18n'
2020
import context from 'browser/lib/context'
2121
import { remote } from 'electron'
22+
import { confirmDeleteNote } from 'browser/lib/confirmDeleteNote'
2223

2324
function matchActiveTags (tags, activeTags) {
2425
return _.every(activeTags, v => tags.indexOf(v) >= 0)
@@ -309,6 +310,8 @@ class SideNav extends React.Component {
309310
const deletionPromises = entries.map((note) => {
310311
return dataApi.deleteNote(note.storage, note.key)
311312
})
313+
const { confirmDeletion } = this.props.config.ui
314+
if (!confirmDeleteNote(confirmDeletion, true)) return
312315
Promise.all(deletionPromises)
313316
.then((arrayOfStorageAndNoteKeys) => {
314317
arrayOfStorageAndNoteKeys.forEach(({ storageKey, noteKey }) => {

0 commit comments

Comments
 (0)