feat: add validators to check values in services

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-09-13 19:14:59 +02:00
committed by Julius Härtl
parent f9acf7778f
commit 1217b37b19
22 changed files with 560 additions and 283 deletions

View File

@@ -70,9 +70,9 @@ export default {
startCreateBoard(e) {
this.editing = true
},
createBoard(e) {
async createBoard(e) {
const title = e.currentTarget.childNodes[0].value
this.$store.dispatch('createBoard', {
await this.$store.dispatch('createBoard', {
title,
color: this.color.substring(1),
})