Skip to content

Commit 6700e66

Browse files
committed
iterate
1 parent a5215e9 commit 6700e66

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/contents.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

src/plugins/driveBrowserPlugin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)