mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-05-21 04:37:28 +01:00
feat: Add "Duplicate Tab" support for Items, Query, and Settings tabs
This commit is contained in:
committed by
BChoudhury-ms
parent
58e13e6a80
commit
617f92c926
@@ -64,6 +64,14 @@ export default class TabsBase extends WaitsForTemplateViewModel {
|
||||
public getPersistedState = (): OpenTab | null => this.persistedState;
|
||||
public triggerPersistState: () => void = undefined;
|
||||
|
||||
public canDuplicate(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public duplicateTab(): void {
|
||||
// Subclasses override this to support tab duplication
|
||||
}
|
||||
|
||||
public onCloseTabButtonClick(): void {
|
||||
useTabs.getState().closeTab(this);
|
||||
TelemetryProcessor.trace(Action.Tab, ActionModifiers.Close, {
|
||||
|
||||
Reference in New Issue
Block a user