Francesco Torchia f8408469f7
Add Dashboard page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-23 17:00:46 +02:00

16 lines
399 B
JavaScript

export function ranges(ranges = [], getters, errors, validatorArgs) {
const t = getters['i18n/t'];
if (ranges.length === 0) {
errors.push(t('validation.required', { key: t('harvester.ipPool.tabs.range') }, true));
}
ranges.map((r) => {
if (!r.subnet) {
errors.push(t('validation.required', { key: t('harvester.ipPool.subnet.label') }, true));
}
});
return errors;
}