This commit is contained in:
Niels Lyngsø
2024-04-15 22:15:11 +02:00
parent 6e0fd5a8d8
commit 07d64bdcf2

View File

@@ -34,6 +34,7 @@ export class UmbValidationMessagesManager {
return this.#messages.getValue().length !== 0;
}
/*
messagesOfPathAndDescendant(path: string): Observable<Array<UmbValidationMessage>> {
// Find messages that starts with the given path, if the path is longer then require a dot or [ as the next character. using a more performant way than Regex:
return this.#messages.asObservablePart((msgs) =>
@@ -44,6 +45,7 @@ export class UmbValidationMessagesManager {
),
);
}
*/
messagesOfTypeAndPath(type: UmbValidationMessageType, path: string): Observable<Array<UmbValidationMessage>> {
// Find messages that matches the given type and path.