mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Migrate UploadItemPane to react (#17)
* Create GenericPaneComponent and use it to migrate UploadItemsPane to React * Add helper functions for building each panel section * Address comments and some styling changes * Unsubscribe to isNotificationConsoleExpanded when component unmounts
This commit is contained in:
@@ -965,7 +965,10 @@ export default class DocumentsTab extends TabsBase implements ViewModels.Documen
|
||||
onCommandClick: () => {
|
||||
const selectedCollection: ViewModels.Collection = container.findSelectedCollection();
|
||||
const focusElement = document.getElementById("itemImportLink");
|
||||
selectedCollection && container.uploadItemsPane.open();
|
||||
const uploadItemsPane = container.isRightPanelV2Enabled()
|
||||
? container.uploadItemsPaneAdapter
|
||||
: container.uploadItemsPane;
|
||||
selectedCollection && uploadItemsPane.open();
|
||||
focusElement && focusElement.focus();
|
||||
},
|
||||
commandButtonLabel: label,
|
||||
|
||||
Reference in New Issue
Block a user