Add Dashboard page

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:00:46 +02:00
parent 9b5bdeb85c
commit f8408469f7
27 changed files with 2680 additions and 3 deletions
+15
View File
@@ -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;
}