Browse Source

After successfully creating News, fields are cleared

theflametrooper 8 years ago
parent
commit
d5a0b03f35
1 changed files with 8 additions and 0 deletions
  1. 8 0
      frontend/components/Admin/News.vue

+ 8 - 0
frontend/components/Admin/News.vue

@@ -151,6 +151,14 @@
 
 				_this.socket.emit('news.create', _this.creating, result => {
 					Toast.methods.addToast(result.message, 4000);
+						if (result.status == 'success') _this.creating = {
+						title: '',
+						description: '',
+						bugs: [],
+						features: [],
+						improvements: [],
+						upcoming: []
+					}
 				});
 			},
 			removeNews: function (news) {