update validator

This commit is contained in:
Oni-Men 2019-09-01 10:18:50 +09:00
parent f2a2d7365f
commit 06b3e38f93
3 changed files with 2 additions and 5 deletions

View file

@ -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(),

View file

@ -29,7 +29,7 @@ export const meta = {
},
name: {
validator: $.str,
validator: $.str.min(1),
},
summary: {

View file

@ -36,7 +36,7 @@ export const meta = {
},
name: {
validator: $.optional.str,
validator: $.str.min(1),
},
summary: {