mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Added DC Status (#19393)
Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -32,6 +32,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
|||||||
subscriptionId: '-',
|
subscriptionId: '-',
|
||||||
connectionMode: '-',
|
connectionMode: '-',
|
||||||
instanceNamespace: '-',
|
instanceNamespace: '-',
|
||||||
|
status: '-'
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(modelView: azdata.ModelView, dashboard: azdata.window.ModelViewDashboard, private _controllerModel: ControllerModel) {
|
constructor(modelView: azdata.ModelView, dashboard: azdata.window.ModelViewDashboard, private _controllerModel: ControllerModel) {
|
||||||
@@ -219,6 +220,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
|||||||
this.controllerProperties.subscriptionId = config?.spec.settings.azure.subscription || this.controllerProperties.subscriptionId;
|
this.controllerProperties.subscriptionId = config?.spec.settings.azure.subscription || this.controllerProperties.subscriptionId;
|
||||||
this.controllerProperties.connectionMode = getConnectionModeDisplayText(config?.spec.settings.azure.connectionMode) || this.controllerProperties.connectionMode;
|
this.controllerProperties.connectionMode = getConnectionModeDisplayText(config?.spec.settings.azure.connectionMode) || this.controllerProperties.connectionMode;
|
||||||
this.controllerProperties.instanceNamespace = config?.metadata.namespace || this.controllerProperties.instanceNamespace;
|
this.controllerProperties.instanceNamespace = config?.metadata.namespace || this.controllerProperties.instanceNamespace;
|
||||||
|
this.controllerProperties.status = config?.status.state || this.controllerProperties.status;
|
||||||
this.refreshDisplayedProperties();
|
this.refreshDisplayedProperties();
|
||||||
|
|
||||||
let registrations: (string | azdata.ImageComponent | azdata.HyperlinkComponent)[][] = this._controllerModel.registrations
|
let registrations: (string | azdata.ImageComponent | azdata.HyperlinkComponent)[][] = this._controllerModel.registrations
|
||||||
@@ -285,6 +287,10 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
|||||||
{
|
{
|
||||||
displayName: loc.namespace,
|
displayName: loc.namespace,
|
||||||
value: this.controllerProperties.instanceNamespace
|
value: this.controllerProperties.instanceNamespace
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: loc.status,
|
||||||
|
value: this.controllerProperties.status
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user