File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -697,9 +697,9 @@ export class Drive implements Contents.IDrive {
697697
698698 Contents . validateContentsModel ( data ) ;
699699 this . _fileChanged . emit ( {
700- type : 'new ' ,
701- oldValue : null ,
702- newValue : data
700+ type : 'delete ' ,
701+ oldValue : data ,
702+ newValue : null
703703 } ) ;
704704
705705 return data ;
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ namespace Private {
547547 isVisible : ( ) => {
548548 return browser . model . path === 's3:' ;
549549 } ,
550- execute : ( ) => {
550+ execute : async ( ) => {
551551 const widget = tracker . currentWidget ;
552552 if ( ! widget ) {
553553 return ;
@@ -558,7 +558,7 @@ namespace Private {
558558 }
559559
560560 const driveName : string = item . value . name ;
561- drive . excludeDrive ( driveName ) ;
561+ await drive . excludeDrive ( driveName ) ;
562562 } ,
563563 label : 'Exclude Drive' ,
564564 icon : removeIcon . bindprops ( { stylesheet : 'menuItem' } )
@@ -587,9 +587,9 @@ namespace Private {
587587 ariaLabel : 'Include Drive'
588588 } )
589589 ]
590- } ) . then ( result => {
590+ } ) . then ( async result => {
591591 if ( result . value ) {
592- drive . includeDrive ( result . value ) ;
592+ await drive . includeDrive ( result . value ) ;
593593 }
594594 } ) ;
595595 } ,
You can’t perform that action at this time.
0 commit comments