Merge remote-tracking branch 'origin/dorian' into dorian

master
dohodin 2 years ago
commit e640bbc7a5

@ -1,8 +1,8 @@
export default { export default {
props: { props: {
teamAEdit: { teamAEdit: {
type: String, require: true,
require: true default: ""
}, },
}, },
data: function() { data: function() {
@ -41,7 +41,8 @@ export default {
throw new StringSize("Name", NAME_MINIMAL_SIZE) throw new StringSize("Name", NAME_MINIMAL_SIZE)
} }
const team = { id: this.id, name: this.name, description: this.description}; const team = { id: this.id, name: this.name, description: this.description };
if (this.teamAEdit != null) { if (this.teamAEdit != null) {
@ -55,7 +56,7 @@ export default {
this.name = ''; this.name = '';
this.description = ''; this.description = '';
}catch (error) { } catch (error) {
if (error instanceof RequiredFieldError) { if (error instanceof RequiredFieldError) {
this.errorMessage=error this.errorMessage=error
} }
@ -64,7 +65,7 @@ export default {
} }
return null; return null;
} }
}, }
}, },
template: `<section> template: `<section>
<form @submit.prevent> <form @submit.prevent>

Loading…
Cancel
Save