File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ let contextMenu = {
99 push : contextMenu . el . querySelector ( '.push' ) ,
1010 rename : contextMenu . el . querySelector ( '.rename' ) ,
1111 addToNewFolder : contextMenu . el . querySelector ( '.add-to-new-folder' ) ,
12- discard : contextMenu . el . querySelector ( '.discard' ) ,
12+ discardChanges : contextMenu . el . querySelector ( '.discard-changes ' ) ,
1313 deleteItem : contextMenu . el . querySelector ( '.delete' )
1414 } ,
1515
1616 addOptionListeners : ( ) => {
17-
18- contextMenu . options . push . addEventListener ( 'click' , async ( ) => {
17+
18+ const options = contextMenu . options ;
19+
20+ options . push . addEventListener ( 'click' , async ( ) => {
1921
2022 const dialogResp = await checkPushDialogs ( ) ;
2123
@@ -25,7 +27,7 @@ let contextMenu = {
2527
2628 } ) ;
2729
28- contextMenu . options . discard . addEventListener ( 'click' , ( ) => {
30+ options . discardChanges . addEventListener ( 'click' , ( ) => {
2931
3032 deleteModFileInHTML ( contextMenu . contextEl ) ;
3133
You can’t perform that action at this time.
0 commit comments