CSR-652 | Change validation location
This commit is contained in:
parent
cfa0ace9c5
commit
678ec72680
1 changed files with 6 additions and 4 deletions
|
|
@ -56,7 +56,12 @@ export default {
|
|||
alertClass: String,
|
||||
cmsWidgetName: {
|
||||
type: String,
|
||||
required: true,
|
||||
default(rawProps) {
|
||||
if (!rawProps.cmsWidgetName) {
|
||||
console.log('Error: Missing a CMS Widget Name (required field)');
|
||||
}
|
||||
return 'widgetUndefined';
|
||||
},
|
||||
},
|
||||
manualHeadline: String,
|
||||
manualCopy: String,
|
||||
|
|
@ -99,9 +104,6 @@ export default {
|
|||
},
|
||||
},
|
||||
mounted() {
|
||||
if (!this.cmsWidgetName) {
|
||||
console.log('Error: Missing a CMS Widget Name (required field)');
|
||||
}
|
||||
this.ensureAlertIsInViewPort();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue