Alerting: Validate that tags are 100 characters or less (#62335)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
George Robinson
2023-01-31 14:19:44 +00:00
committed by GitHub
parent c3b476e1dc
commit 0dacb11a12
3 changed files with 30 additions and 11 deletions

View File

@@ -304,7 +304,7 @@ export class BackendSrv implements BackendService {
}
}
showErrorAlert<T>(config: BackendSrvRequest, err: FetchError) {
showErrorAlert(config: BackendSrvRequest, err: FetchError) {
if (config.showErrorAlert === false) {
return;
}
@@ -324,6 +324,7 @@ export class BackendSrv implements BackendService {
// Validation
if (err.status === 422) {
description = err.data.message;
message = 'Validation failed';
}