mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Added metrics blade link and fixed SelfServe bugs (#764)
* Added metrics blade link * fixed lint error
This commit is contained in:
committed by
GitHub
parent
a81b1a40a3
commit
4c506da7b9
@@ -1,4 +1,3 @@
|
|||||||
import { TFunction } from "i18next";
|
|
||||||
import {
|
import {
|
||||||
CommandBar,
|
CommandBar,
|
||||||
ICommandBarItemProps,
|
ICommandBarItemProps,
|
||||||
@@ -10,6 +9,7 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
Text,
|
Text,
|
||||||
} from "@fluentui/react";
|
} from "@fluentui/react";
|
||||||
|
import { TFunction } from "i18next";
|
||||||
import promiseRetry, { AbortError } from "p-retry";
|
import promiseRetry, { AbortError } from "p-retry";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { WithTranslation } from "react-i18next";
|
import { WithTranslation } from "react-i18next";
|
||||||
@@ -130,10 +130,7 @@ export class SelfServeComponent extends React.Component<SelfServeComponentProps,
|
|||||||
|
|
||||||
const initialValues = await this.props.descriptor.initialize();
|
const initialValues = await this.props.descriptor.initialize();
|
||||||
this.props.descriptor.inputNames.map((inputName) => {
|
this.props.descriptor.inputNames.map((inputName) => {
|
||||||
let initialValue = initialValues.get(inputName);
|
const initialValue = initialValues.get(inputName);
|
||||||
if (!initialValue) {
|
|
||||||
initialValue = { value: undefined, hidden: false, disabled: false };
|
|
||||||
}
|
|
||||||
currentValues = currentValues.set(inputName, initialValue);
|
currentValues = currentValues.set(inputName, initialValue);
|
||||||
baselineValues = baselineValues.set(inputName, initialValue);
|
baselineValues = baselineValues.set(inputName, initialValue);
|
||||||
initialValues.delete(inputName);
|
initialValues.delete(inputName);
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export enum BladeType {
|
|||||||
CassandraKeys = "cassandraDbKeys",
|
CassandraKeys = "cassandraDbKeys",
|
||||||
GremlinKeys = "keys",
|
GremlinKeys = "keys",
|
||||||
TableKeys = "tableKeys",
|
TableKeys = "tableKeys",
|
||||||
|
Metrics = "metrics",
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DecoratorProperties {
|
export interface DecoratorProperties {
|
||||||
|
|||||||
Reference in New Issue
Block a user