mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-15 22:27:51 +01:00
25 lines
757 B
TypeScript
25 lines
757 B
TypeScript
import React from "react";
|
|
import * as ViewModels from "../../Contracts/ViewModels";
|
|
import { SettingsComponent } from "../Controls/Settings/SettingsComponent";
|
|
import TabsBase from "./TabsBase";
|
|
|
|
export class SettingsTabV2 extends TabsBase {
|
|
public render(): JSX.Element {
|
|
return <SettingsComponent settingsTab={this} />;
|
|
}
|
|
}
|
|
|
|
export class CollectionSettingsTabV2 extends SettingsTabV2 {
|
|
public onActivate(): void {
|
|
super.onActivate();
|
|
this.collection.selectedSubnodeKind(ViewModels.CollectionTabKind.CollectionSettingsV2);
|
|
}
|
|
}
|
|
|
|
export class DatabaseSettingsTabV2 extends SettingsTabV2 {
|
|
public onActivate(): void {
|
|
super.onActivate();
|
|
this.database.selectedSubnodeKind(ViewModels.CollectionTabKind.DatabaseSettingsV2);
|
|
}
|
|
}
|