diff --git a/docker/Dockerfile b/docker/Dockerfile index 569b92273..f0a169ae8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: Huawei Inc. # -FROM nginx:1.26.0-alpine +FROM nginx:1.27.0-alpine WORKDIR /usr/share/nginx/html RUN apk add --no-cache bash envsubst COPY docker/nginx-entrypoint.sh / diff --git a/package-lock.json b/package-lock.json index fa52c68a8..405cb68c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "xpanse-ui", - "version": "1.0.11", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "xpanse-ui", - "version": "1.0.11", + "version": "1.0.12", "dependencies": { "@ant-design/icons": "^5.3.7", "@axa-fr/react-oidc": "^7.22.6", diff --git a/package.json b/package.json index 1652b8ba3..68f30dd72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xpanse-ui", - "version": "1.0.11", + "version": "1.0.12", "private": true, "type": "module", "dependencies": { diff --git a/src/components/content/monitor/Monitor.tsx b/src/components/content/monitor/Monitor.tsx index 5097f0acd..55b6a90af 100644 --- a/src/components/content/monitor/Monitor.tsx +++ b/src/components/content/monitor/Monitor.tsx @@ -14,7 +14,6 @@ import { ApiError, DeployedService, Response } from '../../../xpanse-api/generat import { MetricAutoRefreshSwitch } from './MetricAutoRefreshSwitch'; import { MetricChartsPerRowDropDown } from './MetricChartsPerRowDropDown'; import { MetricTimePeriodRadioButton } from './MetricTimePeriodRadioButton'; -import { MonitorTip } from './MonitorTip'; import { chartsPerRowWithTwo, lastMinuteRadioButtonKeyId } from './metricProps'; import { useDeployedServicesByUserQuery } from './useDeployedServicesByUserQuery'; @@ -177,15 +176,6 @@ function Monitor(): React.JSX.Element { setServiceId(''); }; - const onRemove = () => { - setServiceId(''); - form.resetFields(); - tipType.current = undefined; - tipMessage.current = ''; - tipDescription.current = ''; - void deployedServiceQuery.refetch(); - }; - return (
@@ -194,12 +184,6 @@ function Monitor(): React.JSX.Element {   Operating System Monitor
-
diff --git a/src/components/content/monitor/MonitorChart.tsx b/src/components/content/monitor/MonitorChart.tsx index fd2a85c9e..eb4e30d88 100644 --- a/src/components/content/monitor/MonitorChart.tsx +++ b/src/components/content/monitor/MonitorChart.tsx @@ -32,12 +32,14 @@ export default function MonitorChart({ isAutoRefresh, chartsPerRow, setNumberOfChartsAvailable, + onReset, }: { serviceId: string; timePeriod: number; isAutoRefresh: boolean; chartsPerRow: string; setNumberOfChartsAvailable: (chartCount: number) => void; + onReset: () => void; }): React.JSX.Element { let tipType: 'error' | 'success' | undefined = undefined; let tipMessage: string = ''; @@ -235,6 +237,10 @@ export default function MonitorChart({ tipType = undefined; tipMessage = ''; tipDescription = ''; + onReset(); + }; + + const retryRequest = () => { if (timePeriod === lastMinuteRadioButtonKeyId) { void useGetLastKnownMetric.refetch(); } else { @@ -244,7 +250,13 @@ export default function MonitorChart({ return ( <> - + {useGetMetricForSpecificTimePeriod.isLoading || useGetLastKnownMetric.isLoading ? (
void; + retryRequest: () => void; }): React.JSX.Element => { if (!type) { return <>; @@ -32,6 +35,17 @@ export const MonitorTip = ({ type={type} onClose={onRemove} closable={true} + action={ + + } />{' '}
); diff --git a/src/components/content/order/common/MigrateServiceSubmitBillingMode.tsx b/src/components/content/order/common/MigrateServiceSubmitBillingMode.tsx index 51b6d53c3..ab1b60926 100644 --- a/src/components/content/order/common/MigrateServiceSubmitBillingMode.tsx +++ b/src/components/content/order/common/MigrateServiceSubmitBillingMode.tsx @@ -19,7 +19,7 @@ export const MigrateServiceSubmitBillingMode = ({ selectBillMode }: { selectBill required={true} > - + {selectBillMode}