Fixed adding new stuff
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2019-09-14 17:21:48 +02:00
parent 59420922a5
commit f7eb4f9ca8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 2 deletions

View File

@ -107,6 +107,7 @@ const app = new Vue({
},
create(createdData) {
this.data.push(createdData)
this.$set(this.formStuff, createdData.id, {addCoins: 0, showDelete: false})
this.sortData()
},
delete(deletedData) {
@ -201,8 +202,6 @@ $('.ui.gemeindeadd.modal')
$('.loader').removeClass('active');
if (msg === 'success') {
$('#name').val('');
getList();
$('#msg').html('<div class="ui success message" style="display: block;">Die Gemeinde wurde erfolgreich hinzugefügt.</div>');
} else {
$('#msg').html('<div class="ui error message" style="display: block;">Ein Fehler trat auf.</div>');