Fixed adding new stuff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
59420922a5
commit
f7eb4f9ca8
|
@ -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>');
|
||||
|
|
Loading…
Reference in New Issue
Block a user