Fixed label creation
All checks were successful
the build was successful

This commit is contained in:
kolaente 2019-03-06 19:23:29 +01:00
parent 2f2f72c483
commit 620681063a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,7 @@
})
},
editLabel(label) {
if(label.created_by.id !== this.user.id) {
if(label.created_by.id !== this.user.infos.id) {
return
}
this.labelEditLabel = label

View File

@ -20,4 +20,9 @@ export default class LabelService extends AbstractService {
label.hex_color = label.hex_color.substring(1, 7)
return label
}
beforeCreate(label) {
label.hex_color = label.hex_color.substring(1, 7)
return label
}
}