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