|
|
@ -89,7 +89,7 @@ |
|
|
|
ref="name" |
|
|
|
ref="name" |
|
|
|
v-model="project.title" |
|
|
|
v-model="project.title" |
|
|
|
v-ge="['project', 'name']" |
|
|
|
v-ge="['project', 'name']" |
|
|
|
:rules="form.titleRequiredRule" |
|
|
|
:rules="form.titleValidationRule" |
|
|
|
:height="20" |
|
|
|
:height="20" |
|
|
|
:label="$t('placeholder.projName')" |
|
|
|
:label="$t('placeholder.projName')" |
|
|
|
autofocus |
|
|
|
autofocus |
|
|
@ -963,7 +963,10 @@ export default { |
|
|
|
/** ************** START : form related ****************/ |
|
|
|
/** ************** START : form related ****************/ |
|
|
|
form: { |
|
|
|
form: { |
|
|
|
portValidationRule: [v => /^\d+$/.test(v) || 'Not a valid port'], |
|
|
|
portValidationRule: [v => /^\d+$/.test(v) || 'Not a valid port'], |
|
|
|
titleRequiredRule: [v => !!v || 'Title is required'], |
|
|
|
titleValidationRule: [ |
|
|
|
|
|
|
|
v => !!v || 'Title is required', |
|
|
|
|
|
|
|
v => v.length <= 50 || 'Project name exceeds 50 characters', |
|
|
|
|
|
|
|
], |
|
|
|
requiredRule: [v => !!v || 'Field is required'], |
|
|
|
requiredRule: [v => !!v || 'Field is required'], |
|
|
|
folderRequiredRule: [v => !!v || 'Folder path is required'] |
|
|
|
folderRequiredRule: [v => !!v || 'Folder path is required'] |
|
|
|
}, |
|
|
|
}, |
|
|
|