update validator
This commit is contained in:
@@ -220,9 +220,6 @@ export default Vue.extend({
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
save() {
|
save() {
|
||||||
if (this.name.length == 0) {
|
|
||||||
this.name = this.currentName;
|
|
||||||
}
|
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
title: this.title.trim(),
|
title: this.title.trim(),
|
||||||
|
@@ -29,7 +29,7 @@ export const meta = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
name: {
|
name: {
|
||||||
validator: $.str,
|
validator: $.str.min(1),
|
||||||
},
|
},
|
||||||
|
|
||||||
summary: {
|
summary: {
|
||||||
|
@@ -36,7 +36,7 @@ export const meta = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
name: {
|
name: {
|
||||||
validator: $.optional.str,
|
validator: $.str.min(1),
|
||||||
},
|
},
|
||||||
|
|
||||||
summary: {
|
summary: {
|
||||||
|
Reference in New Issue
Block a user