|
|
|
@@ -157,6 +157,7 @@ export default { |
|
|
|
const hasEndSpace = this.state.label[this.state.label.length - 1] == ' '; |
|
|
|
const list = this.state.label.trim().split(' ').filter(label => label != ''); |
|
|
|
this.state.label = list.slice(0, MAX_LABEL_COUNT).join(' ') + (hasEndSpace && list.length < MAX_LABEL_COUNT ? ' ' : ''); |
|
|
|
this.state.isPrivate = false; |
|
|
|
}, |
|
|
|
submit() { |
|
|
|
if (!this.checkName()) { |
|
|
|
|