File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {SortableContainer} from 'react-sortable-hoc'
19
19
import i18n from 'browser/lib/i18n'
20
20
import context from 'browser/lib/context'
21
21
import { remote } from 'electron'
22
+ import { confirmDeleteNote } from 'browser/lib/confirmDeleteNote'
22
23
23
24
function matchActiveTags ( tags , activeTags ) {
24
25
return _ . every ( activeTags , v => tags . indexOf ( v ) >= 0 )
@@ -309,6 +310,8 @@ class SideNav extends React.Component {
309
310
const deletionPromises = entries . map ( ( note ) => {
310
311
return dataApi . deleteNote ( note . storage , note . key )
311
312
} )
313
+ const { confirmDeletion } = this . props . config . ui
314
+ if ( ! confirmDeleteNote ( confirmDeletion , true ) ) return
312
315
Promise . all ( deletionPromises )
313
316
. then ( ( arrayOfStorageAndNoteKeys ) => {
314
317
arrayOfStorageAndNoteKeys . forEach ( ( { storageKey, noteKey } ) => {
You can’t perform that action at this time.
0 commit comments