Move delete collection confirmation pane to react (#417)

This commit is contained in:
victor-meng
2021-02-10 13:44:00 -08:00
committed by GitHub
parent b217d4be1b
commit 4210e0752b
28 changed files with 3529 additions and 178 deletions

View File

@@ -112,10 +112,7 @@ export class ResourceTreeContextMenuButtonFactory {
items.push({
iconSrc: DeleteCollectionIcon,
onClick: () => {
const selectedCollection: ViewModels.Collection = container.findSelectedCollection();
selectedCollection && selectedCollection.onDeleteCollectionContextMenuClick(selectedCollection, null);
},
onClick: () => container.openDeleteCollectionConfirmationPane(),
label: container.deleteCollectionText(),
styleClass: "deleteCollectionMenuItem",
});