Merge branch 'staging' into app-settings-fixes
This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
||||
filename: {
|
||||
type: String,
|
||||
},
|
||||
objectName: {
|
||||
initialObjectName: {
|
||||
type: String,
|
||||
},
|
||||
initialErrors: {
|
||||
@@ -42,6 +42,7 @@ export default {
|
||||
filenameError: false,
|
||||
downloadLink: '',
|
||||
fileSizeLimit: this.sizeLimit,
|
||||
objectName: this.initialObjectName,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -72,6 +73,7 @@ export default {
|
||||
const response = await uploader.upload(file)
|
||||
if (uploadResponseOkay(response)) {
|
||||
this.attachment = e.target.value
|
||||
this.objectName = uploader.objectName
|
||||
this.$refs.attachmentFilename.value = file.name
|
||||
this.$refs.attachmentObjectName.value = response.objectName
|
||||
this.$refs.attachmentInput.disabled = true
|
||||
|
@@ -9,6 +9,12 @@ export default {
|
||||
unmask: [],
|
||||
validationError: 'Please enter a response',
|
||||
},
|
||||
applicationName: {
|
||||
mask: false,
|
||||
match: /^[A-Za-z0-9\-_,'".\s]{4,100}$$/,
|
||||
unmask: [],
|
||||
validationError: 'Application names can be between 4-100 characters',
|
||||
},
|
||||
clinNumber: {
|
||||
mask: false,
|
||||
match: /^\d{4}$/,
|
||||
@@ -42,14 +48,14 @@ export default {
|
||||
},
|
||||
defaultStringField: {
|
||||
mask: false,
|
||||
match: /^[A-Za-z0-9\-_ \.]{1,100}$/,
|
||||
match: /^[A-Za-z0-9\-_,'".\s]{1,1000}$/,
|
||||
unmask: [],
|
||||
validationError:
|
||||
'Please enter a response of no more than 100 alphanumeric characters',
|
||||
},
|
||||
defaultTextAreaField: {
|
||||
mask: false,
|
||||
match: /^[A-Za-z0-9\-_ \.]{1,1000}$/,
|
||||
match: /^[A-Za-z0-9\-_,'".\s]{1,1000}$/,
|
||||
unmask: [],
|
||||
validationError:
|
||||
'Please enter a response of no more than 1000 alphanumeric characters',
|
||||
@@ -94,7 +100,7 @@ export default {
|
||||
},
|
||||
portfolioName: {
|
||||
mask: false,
|
||||
match: /^.{4,100}$/,
|
||||
match: /^[A-Za-z0-9\-_,'".\s]{4,100}$$/,
|
||||
unmask: [],
|
||||
validationError: 'Portfolio names can be between 4-100 characters',
|
||||
},
|
||||
|
Reference in New Issue
Block a user