We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d086687 commit 3669151Copy full SHA for 3669151
src/app.jsx
@@ -1769,10 +1769,19 @@ class App extends Component {
1769
tooltip='Delete notebook'
1770
tooltipOptions={ttopts}
1771
onClick={() => {
1772
- this.patchLectureDetails({
1773
- removeipynb: {
1774
- id: node.id
1775
- }
+ confirmDialog({
+ message:
+ 'Do you really want to delete this notebook permanently? (Can not be undone!)',
+ header: 'Confirm deletion',
1776
+ icon: 'pi pi-exclamation-triangle',
1777
+ accept: () => {
1778
+ this.patchLectureDetails({
1779
+ removeipynb: {
1780
+ id: node.id
1781
+ }
1782
+ })
1783
+ },
1784
+ reject: () => {} // do nothing
1785
})
1786
}}
1787
/>
0 commit comments