Parcourir la source

After successfully creating News, fields are cleared

theflametrooper il y a 8 ans
Parent
commit
d5a0b03f35
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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) {