mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-22 00:27:38 +08:00
Add pkg/harvester components + shell portings - 1
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
265 files changed
+42316
-82
No files matched your search
@@ -1,5 +1,11 @@
|
||||
export function volumeSize(size, getters, errors, validatorArgs, displayKey, value) {
|
||||
if (!/^([1-9][0-9]{0,8})[a-zA-Z]+$/.test(size)) {
|
||||
if (!size) {
|
||||
const key = getters['i18n/t']('harvester.volume.size');
|
||||
|
||||
errors.push(getters['i18n/t']('validation.required', { key }));
|
||||
}
|
||||
|
||||
if (size && !/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(size)) {
|
||||
const message = getters['i18n/t']('harvester.validation.generic.maximumSize', { max: '999999999 GiB' });
|
||||
|
||||
errors.push(message);
|
||||
|
||||
Reference in new issue
Block a user