SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: added disabled property to the btn (#2775)
GermaVinsmoke708f6dd03f95
diff --git a/frontend/src/container/Licenses/ApplyLicenseForm.tsx b/frontend/src/container/Licenses/ApplyLicenseForm.tsxindex f0f4b76888..7067980e78 100644--- a/frontend/src/container/Licenses/ApplyLicenseForm.tsx+++ b/frontend/src/container/Licenses/ApplyLicenseForm.tsx@@ -22,7 +22,7 @@ function ApplyLicenseForm({licenseRefetch,}: ApplyLicenseFormProps): JSX.Element {const { t } = useTranslation(['licenses']);- const [loading, setLoading] = useState(false);+ const [isLoading, setIsLoading] = useState(false);const [form] = Form.useForm<FormValues>();const { featureResponse } = useSelector<AppState, AppReducer>((state) => state.app,@@ -31,6 +31,8 @@ function ApplyLicenseForm({const { notifications } = useNotifications();const key = Form.useWatch('key', form);+ const isDisabled = isLoading || !key;+const onFinish = async (values: unknown | { key: string }): Promise<void> => {const params = values as { key: string };if (params.key === '' || !params.key) {@@ -41,7 +43,7 @@ function ApplyLicenseForm({return;}- setLoading(true);+ setIsLoading(true);try {const response = await apply({key: params.key,@@ -66,7 +68,7 @@ function ApplyLicenseForm({description: t('unexpected_error'),});}- setLoading(false);+ setIsLoading(false);};return (@@ -85,8 +87,8 @@ function ApplyLicenseForm({</LicenseInput><Form.Item><Button- loading={loading}- disabled={loading}+ loading={isLoading}+ disabled={isDisabled}type="primary"htmlType="submit">