Block list amount valivation message
This commit is contained in:
@@ -244,14 +244,26 @@ export class UmbPropertyEditorUIBlockListElement
|
||||
|
||||
this.addValidator(
|
||||
'rangeUnderflow',
|
||||
() => '#validation_entriesShort',
|
||||
() => {
|
||||
return this.localize.term(
|
||||
'validation_entriesShort',
|
||||
this._limitMin,
|
||||
(this._limitMin?? 0) - this.#entriesContext.getLength()
|
||||
);
|
||||
},
|
||||
() => !!this._limitMin && this.#entriesContext.getLength() < this._limitMin,
|
||||
);
|
||||
|
||||
|
||||
this.addValidator(
|
||||
'rangeOverflow',
|
||||
() => '#validation_entriesExceed',
|
||||
() => !!this._limitMax && this.#entriesContext.getLength() > this._limitMax,
|
||||
'rangeOverflow',
|
||||
() => {
|
||||
return this.localize.term(
|
||||
'validation_entriesExceed',
|
||||
this._limitMax,
|
||||
this.#entriesContext.getLength()
|
||||
);
|
||||
},
|
||||
() => !!this._limitMax && this.#entriesContext.getLength() > this._limitMax,
|
||||
);
|
||||
|
||||
this.observe(this.#entriesContext.layoutEntries, (layouts) => {
|
||||
|
||||
Reference in New Issue
Block a user