mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 21:26:08 +08:00
Add Dashboard page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user